Grip detection and capacitive gesture system for mobile devices

ABSTRACT

Apparatus and methods are disclosed related to managing characteristics of a mobile device based upon capacitive detection of materials proximate the mobile device, a capacitive gesture system that can allow the same gestures be used in arbitrary locations within range of a mobile device. One such method includes receiving a first capacitive sensor measurement with a first capacitive sensor of the mobile device. The method further includes determining a value indicative of a material adjacent to the mobile device based on a correspondence between the first capacitive sensor measurement and stored values corresponding to different materials. The method further includes sending instructions to adjust a characteristic of the mobile device based on the determined value indicative of the material adjacent to the mobile device. In certain examples, gesture sensing can be performed using capacitive measurements from the capacitive sensors.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a Continuation under 35 U.S.C. §120 of a copendingInternational (PCT) application PCT/US2013/057736, filed Aug. 30, 2013(published as WO 2014/036532 A1, referenced herein as “The PCTApplication”), entitled “ENVIRONMENT DETECTION AND CAPACITIVE GESTURESYSTEM FOR MOBILE DEVICES”. The PCT application, having the sameinventor as this application, is hereby incorporated by reference in itsentirety.

The PCT application claims priority to or receives benefit from earlierUS patent applications, including U.S. Provisional Application61/696,121 (filed on 31 Aug. 2012), U.S. Provisional Application61/750,349 (filed on 8 Jan. 2013), U.S. Non-Provisional application Ser.No. 13/794,363 (filed on 11 Mar. 2013, now issued as U.S. Pat. No.8,744,418), and U.S. Provisional Application 61/868,661 (filed on 22Aug. 2013). These referenced earlier US patent applications are alsohereby incorporated by reference in its entirety.

TECHNICAL FIELD OF THE DISCLOSURE

The disclosed technology relates to electronic systems, and moreparticularly, to environment detection and a capacitive gesture systemthat could be applicable to any type of computing device.

DESCRIPTION OF RELATED TECHNOLOGY

Capacitive sensing is a technology based on capacitive coupling whichtakes human body capacitance as input. Capacitive sensing is used inmany different types of sensors, including those to detect and measureproximity, position or displacement, humidity, fluid level, andacceleration. Capacitive sensing as a human interface device (HID)technology (for example, to replace the computer mouse) has become morepopular. Capacitive touch sensors are used in many devices such aslaptop trackpads, digital audio players, computer displays, mobilephones, mobile devices, tablets etc. Design engineers continue to choosecapacitive sensors for their versatility, reliability and robustness,unique human-device interface, and cost reduction over mechanicalswitches.

Capacitive sensors generally detect anything that is conductive or has adielectric different than that of air. While capacitive sensingapplications can replace mechanical buttons with capacitivealternatives, other technologies such as multi-touch and gesture-basedtouchscreens are also premised on capacitive sensing.

In a separate endeavor, mobile devices have surpassed the standarddesktop computer. A mobile device can take the form of, for example, atablet, a smartphone (inclusive of Android™ phones, i-Phones™), ani-Pad™, a Google Nexus™, a Microsoft Surfacer™, a personal computer, avideo processing component, a laptop computer (inclusive of any type ofnotebook), any type of touch-enabled input device, a portable mediaplatform (PMP), etc. Some mobile devices are powered by a battery, andsome mobile devices are capable of being powered by an external powersource such as an alternating current (AC) outlet. Many mobile devicessupport wired and/or wireless communication for telephony, videoconferencing, and/or data transfer.

Mobile devices can be used in a variety of environments. For example, auser can hold a mobile device to his ear or at arm's length. Mobiledevices can be placed on a surface such as a table, desk, or counter. Auser can place a mobile device in an enclosed space such as a drawer,purse, or pocket. Some mobile devices can be equipped with a protectivecase. Some mobile devices can be placed in a stand or docking station,which can facilitate charging or wired communication with anotherdevice.

The environment around a mobile device may change over time. Forexample, the mobile device may be moved between environments (such asfrom a table to a purse). People or objects may move in the vicinity ofthe mobile device. Atmospheric conditions in the vicinity of the mobiledevice can change. For a variety of reasons, it can be desirable toascertain environmental conditions in the immediate vicinity of a mobiledevice.

SUMMARY OF THE DISCLOSURE

Various implementations of systems, methods and devices within the scopeof the appended claims each have several aspects, no single one of whichis solely responsible for the desirable attributes described herein.Without limiting the scope of the appended claims, some prominentfeatures are described herein.

In at least one embodiment, a capacitive gesture system is provided thatallows the same gestures that are used on touch screens to be used inarbitrary locations within range of a mobile device. One aspect of thearchitecture relates to a suite of algorithms that work in conjunctionwith a chip that can perform capacitive sensing. In certain examples,the chip takes readings off capacitive sensors and performs functions ofgesture sensing, etc. In addition, the human operator can gesticulatearound, in front, behind, on the side, etc. of the device, and thealgorithms enable picking up changes in capacitance and interpretinggestures accordingly.

Changes in capacitance may be interpreted as gestures which correspondto e.g., different environment characteristics, contexts, actions and/oruser inputs, such that an appropriate characteristic of the mobiledevice may be adjusted. The interpretation of changes in capacitance(e.g., mapping of the changes in capacitance to one or morecharacteristics/contexts/actions/inputs) may be done in various ways.One way to interpret changes in capacitance is through classification,e.g., using statistical methods and/or machine learning methods.According to one aspect, a Naïve Bayesian classifier is used forclassifying an observed change(s) in capacitance to determine which oneor more appropriate changes to the characteristic(s) of the mobiledevice correspond to the observed change(s) in capacitance. A NaïveBayesian classifier is advantageous because it is relatively accuratebut yet relatively simple to implement. Simplicity of the classifierprovides added advantages such as power savings and relatively shortprocessing time to allow for real-time processing.

Certain features of the present disclosure may include (but are notlimited to):

-   -   Stylus/finger material detection for absolute position scaling:        scales along X-Y axis (in a single plane);    -   Stylus material recognition for extended application level use        (e.g., a game recognizes a certain stylus and could enable        access to a new character). The algorithm could communicate with        applications and interpret gestures accordingly. Thus, a        specific gesture in one application can mean a different action        in another application.    -   Gesture recognition can occur from the sides, top, bottom,        front, or back of a device.    -   In one implementation, a three-electrode sensing array is used.    -   Certain examples include a differential feed line cancelation.        Normally, the feed line between a sensor and a chip is also        sensing, and this can present a problem. Certain algorithms of        the present disclosure cancel the effects of the feed line.    -   Certain embodiments include a differential side non-normal        (fringe) cancelation.    -   Electrodes can be placed on the screen. The electrodes        (comprising 3 arrays (potentially in three different planes))        are connected to the chip. The sensor can be unidirectional.    -   Multi-planar gestures can be accommodated (e.g., writing a note        on the surface of a table, then dragging your finger off of the        table and to the left to advance to the next page of the        notebook). Certain embodiments are not necessarily true 3D. The        3D space is spliced into several 2D planes. A sensor        watches/senses on each plane and combines sensing results to        give 3D result.    -   Absolute positioning (e.g. clicking on apps) and Relative        positioning (e.g., swipes, scrolls, etc.) are supported.

Another aspect of the disclosure provides a method of managingcharacteristics of a mobile device based upon capacitive detection ofmaterials proximate the mobile device. The method includes receiving afirst capacitive sensor measurement with a first capacitive sensor ofthe mobile device. The method further includes determining a valueindicative of a material adjacent to the mobile device based on acorrespondence between the first capacitive sensor measurement andstored values corresponding to different materials. The method furtherincludes sending instructions to adjust a characteristic of the mobiledevice based on the determined value indicative of the material adjacentto the mobile device.

Another aspect of the disclosure provides a method of sensing anenvironment of a mobile device. The method includes taking a measurementwith a first capacitive sensor of the mobile device. The method furtherincludes determining an environmental characteristic based on acorrespondence between the measurement and the environmentalcharacteristic. The method further includes adjusting a characteristicof the mobile device based on the determined environmentalcharacteristic. In an embodiment, the determined environmentalcharacteristic can include a dielectric constant of an object proximateto the mobile device. In an embodiment, the determined environmentalcharacteristic can include a material type of an object proximate to themobile device. In some embodiments, the mobile device can be in motionrelative to a proximate object or the proximate object can be in motionrelative to the mobile device. The method can further includedetermining a change in measurement caused at least in part by therelative movement. The method can further include determining thecharacteristic of the object based on the change in measurement.

In an embodiment, the method can further include measuring an indicatorof a change in position of the mobile device. The method can furtherinclude determining the characteristic of the object based further onthe indicator. In an embodiment, the method can further includedetermining a variability in measurement caused by an object in theproximity of the mobile device. The method can further includedetermining whether the object is human based on the variability inmeasurement.

In an embodiment, the method can further include taking a measurementwith a second capacitive sensor of the mobile device. The method canfurther include determining a spatial relationship between the mobiledevice and the material adjacent to the mobile device based on themeasurements taken from the first and second capacitive sensors. Thedetermined spatial relationship can include a manner in which a handgrips the mobile device.

In an embodiment, the determined environmental characteristic caninclude a spatial relationship between the mobile device and an objectproximate to the mobile device. The method can further include taking ameasurement with a second capacitive sensor of the mobile device. Themethod can further include determining the spatial relationship based onthe measurements taken from the first and second capacitive sensors.

In various embodiments, sending instructions to adjust thecharacteristic can include sending instructions to adjust a radiofrequency (RF) communication characteristic based on the determinedvalue indicative of the material adjacent to the mobile device. Sendinginstructions to adjust the characteristic of the mobile device caninclude adjusting a transmit power of the mobile device. Sendinginstructions to adjust the characteristic of the mobile device caninclude adjusting a tuning of an antenna. Sending instructions to adjustthe characteristic of the mobile device can include transmittinginformation related to the measurement.

In various embodiments, sending instructions to adjust thecharacteristic of the mobile device can include recording an updatedcorrespondence between the first capacitive sensor measurement and thevalue indicative of the material adjacent to the mobile device in thestored values corresponding to different materials. Sending instructionsto adjust the characteristic of the mobile device can include adjustinga user interface output. In an embodiment, determining the valueindicative of the material adjacent to the mobile device can includedetermining a value that corresponds to a conductivity classification.

In an embodiment, the determined spatial relationship can include amanner in which a hand grips the mobile device. In an embodiment,adjusting the characteristic of the mobile device can include recordingan updated correspondence between the measurement and the environmentalcharacteristic. In an embodiment, adjusting the characteristic of themobile device can include a transmit power of the mobile device.

In an embodiment, adjusting the characteristic of the mobile device caninclude a tuning of an antenna. In an embodiment, adjusting thecharacteristic of the mobile device can include adjusting a userinterface output. In an embodiment, adjusting the characteristic of themobile device can include transmitting information related to themeasurement.

In various embodiments, when the mobile device is in motion relative tothe material adjacent to the mobile device, the method can furtherinclude determining a change in measurement by the first capacitivesensor caused at least in part by the relative movement of the mobiledevice. The method can further include determining the value indicativeof the material adjacent to the mobile device based on the change inmeasurement. The method can further include measuring an indicator of achange in position of the mobile device. The method can further includedetermining the value indicative of the material adjacent to the mobiledevice based further on the indicator.

In an embodiment, the method can further include determining avariability over time in measurement by the first capacitive sensorcaused by the material adjacent to the mobile device. The method canfurther include determining whether the material is human based on thevariability in measurement.

In an embodiment, the method can further include measuring a case orhousing, or a change thereof, with the first capacitive sensor. Themethod can further include calibrating the first capacitive sensor basedon the measurement.

In an embodiment, adjusting the characteristic of the mobile device caninclude logging data. In an embodiment, adjusting the characteristic ofthe mobile device can include building a relational database. In anembodiment, adjusting the characteristic of the mobile device caninclude establishing patterns of mobility and patterns of expected usecases. The relational database may be used as training data forclassifying observed changes in capacitance. In particular, further data(i.e., information which corresponds logged data to one or more classes,provided manually or through clustering algorithms or some combinationof both) may be provided with the logged data to provide training datafor supervised learning. In some embodiments, the data being logged maybe sourced from one or a plurality of mobile devices (or relationaldatabases). For instance, patterns may be determined through clusteringalgorithms, and the clusters may be used as data for supervised and/orunsupervised learning in training classification algorithms used forclassifying observed changes as one or more patterns. The patterns mayalso be used to improve existing probability distributions.

Another aspect of the subject matter described in the disclosureprovides a system configured to sense an environment of a mobile device.The system includes a first capacitive sensor configured to provide ameasurement related to a material adjacent to the mobile device. Thesystem further includes a memory configured to store a correspondencebetween one or more measurements from the first capacitive sensor andone or more values indicative of the material adjacent to the mobiledevice. The system further includes one or more processors configured toreceive the measurement. The one or more processors are furtherconfigured to determine a corresponding value indicative of the materialadjacent to the mobile device based on the measurement. The one or moreprocessors are further configured to modify a state of the mobile devicebased on the determined value indicative of the material adjacent to themobile device.

Another aspect of the subject matter described in the disclosureprovides a system configured to sense an environment of a mobile device.The system includes a first capacitive sensor. The system furtherincludes a memory. The system further includes one or more processorsconfigured to take a measurement from the first capacitive sensor. Theone or more processors are further configured to determine anenvironmental characteristic based on a correspondence between themeasurement and the environmental characteristic. The one or moreprocessors are further configured to adjust a characteristic of themobile device based on the determined environmental characteristic.

In various embodiments, the system can further include a secondcapacitive sensor of the mobile device. The one or more processors canbe further configured to determine a spatial relationship between themobile device and the material adjacent to the mobile device based onmeasurements received from the first and second capacitive sensors. Thedetermined spatial relationship can include a manner in which a handgrips the mobile device.

In various embodiments, the one or more processors can be configured tomodify the state by modifying a radio frequency (RF) communicationcharacteristic based on the determined value indicative of the materialadjacent to the mobile device. The one or more processors can beconfigured to adjust a transmit power of the mobile device based on thedetermined value indicative of the material adjacent to the mobiledevice. The one or more processors can be configured to adjust a tuningof an antenna based on the determined value indicative of the materialadjacent to the mobile device. The system can further include atransmitter, configured to transmit information related to themeasurement, based on the determined value indicative of the materialadjacent to the mobile device.

In various embodiments, the one or more processors can be configured torecord an updated correspondence between the measurement and thematerial, adjust a user interface output, and/or log data based on thedetermined value indicative of the material adjacent to the mobiledevice. The value indicative of the material adjacent to the mobiledevice can include a dielectric constant of the object proximate to themobile device. The value indicative of the material adjacent to themobile device can correspond to a conductivity classification.

In various embodiments, when the mobile device is in motion relative tothe material, the one or more processors can be further configured todetermine a change in measurement by the first capacitive sensor causedat least in part by the relative movement of the mobile device. The oneor more processors can be further configured to determine the valueindicative of the material adjacent to the mobile device based on thechange in measurement. The system can further include an accelerometerconfigured to measure an indicator of a change in position of the mobiledevice. The one or more processors can be further configured todetermine the value indicative of the material adjacent to the mobiledevice based on the indicator.

In an embodiment, the one or more processors can be further configuredto determine a variability over time in measurement by the firstcapacitive sensor caused by the material adjacent to the mobile device.The one or more processors can be further configured to determinewhether the material is human based on the variability in measurement.

In an embodiment, the received measurement can correspond to a case orhousing of the mobile device. The one or more processors can be furtherconfigured to calibrate the first capacitive sensor based on thereceived measurement or a change thereof.

Another aspect of the subject matter described in the disclosureprovides an apparatus for sensing an environment of a mobile deviceincluding means for receiving a measurement related to a materialadjacent to the mobile device. The apparatus further includes means fordetermining a value indicative of the material adjacent to the mobiledevice based on a correspondence between the measurement and the value.The apparatus further includes means for modifying an aspect of themobile device based on the determined value indicative of the materialadjacent to the mobile device.

Another aspect of the subject matter described in the disclosureprovides a non-transitory computer-readable medium including code that,when executed, causes an apparatus to take a measurement with a firstcapacitive sensor of a mobile device. The medium further includes codethat, when executed, causes the apparatus to look up a correspondencebetween the measurement and one or more values indicative of a materialadjacent to the mobile device. The medium further includes code that,when executed, causes the apparatus to modify a state of the mobiledevice based on the correspondence.

Another aspect of the subject matter described in the disclosureprovides an apparatus for sensing an environment of a mobile device. Theapparatus includes means for taking a capacitive measurement. Theapparatus further includes means for determining an environmentalcharacteristic based on a correspondence between the measurement and theenvironmental characteristic. The apparatus further includes means foradjusting a characteristic of the mobile device based on the determinedenvironmental characteristic.

Another aspect of the subject matter described in the disclosureprovides a non-transitory computer-readable medium comprising code that,when executed, causes an apparatus to take a measurement with a firstcapacitive sensor of a mobile device. The medium further includes codethat, when executed, causes the apparatus to determine an environmentalcharacteristic based on a correspondence between the measurement and theenvironmental characteristic. The medium further includes code that,when executed, causes the apparatus to adjust a characteristic of themobile device based on the determined environmental characteristic.

For purposes of summarizing the disclosure, certain aspects, advantagesand novel features of the inventions have been described herein. It isto be understood that not necessarily all such advantages may beachieved in accordance with any particular embodiment of the invention.Thus, the invention may be embodied or carried out in a manner thatachieves or optimizes one advantage or group of advantages as taughtherein without necessarily achieving other advantages as may be taughtor suggested herein.

BRIEF DESCRIPTION OF THE DRAWING

FIG. 1 shows an exemplary wireless communication system in which aspectsof the present disclosure can be employed.

FIG. 2 is a block diagram of a mobile device that can be employed in thewireless communication system of FIG. 1.

FIG. 3 is a schematic diagram of an environment sense system, accordingto an embodiment.

FIGS. 4A-4B show an exemplary sensor that can be employed in theenvironment sense system of FIG. 3.

FIGS. 5A-5D are schematic diagrams showing exemplary sensor placementswithin the mobile device of FIG. 2, according to various embodiments.

FIGS. 6A-6D are schematic diagrams showing exemplary horizontal sensorplacements within the mobile device of FIG. 2, according to variousembodiments.

FIG. 7 is a schematic view of the environment sense controller of FIGS.2 and 3, according to an embodiment.

FIGS. 8A-C show exemplary configurations of sensors and the environmentsense controller of FIG. 2, according to various embodiments.

FIGS. 9A-9F are schematic diagrams showing exemplary grips of the mobiledevice of FIG. 5A, according to various embodiments.

FIGS. 10A-10E are perspective views of the exemplary grips of FIGS.9A-9E.

FIG. 11 is a chart showing relative differential and single-endedmagnitude responses expected for each of the grips shown in FIGS. 9A-9F.

FIG. 12 is a flowchart of an exemplary method of environment detection,according to an embodiment.

FIG. 13 is a flowchart of an exemplary method of environment detection,according to an embodiment.

FIG. 14 is a flowchart of an exemplary method of environment detection,according to an embodiment.

FIG. 15 is a flowchart of an exemplary method of sensing an environmentof the mobile device of FIG. 2.

FIG. 16 is a functional block diagram of an apparatus for sensing anenvironment of the mobile device of FIG. 2, in accordance with anembodiment of the disclosure.

FIG. 17 shows four illustrative probability distributions with varyingvariances suitable for use in a Naïve Bayesian classifier, in accordancewith some embodiments of the disclosure.

FIG. 18 shows illustrative data points usable with a finite statemachine in detecting complex gestures, in accordance with someembodiments of the disclosure.

FIG. 19 shows an illustrative application programming interface for anexemplary classifier, in accordance with some embodiments of thedisclosure.

DESCRIPTION OF THE DISCLOSURE

The following detailed description of certain embodiments presentsvarious descriptions of specific embodiments of the inventions. However,the inventions can be embodied in a multitude of different ways asdefined and covered by the claims. In this description, reference ismade to the drawings where like reference numerals indicate identical orfunctionally similar elements.

As discussed above, it can be desirable to ascertain environmentalconditions surrounding mobile devices. In one particular example, themobile device can be configured for wireless communication. Theenvironment surrounding the wireless mobile device may affect radiotransmission and/or reception. The mobile device can be configured todetect a characteristic of the environment, or a change thereof, andadjust a characteristic of radio transmission and/or reception based onthe detected characteristic. In other applications, in response todetection of environmental conditions, the mobile device can affectother changes, such as altering displayed images or text on the mobiledevice screen; transmitting data related to the detected environmentalcharacteristics; logging data, building relational databases;establishing patterns of mobility; and establishing patterns of expecteduse cases.

Environmental detection, such as determining a specific type of materialnear a device, can be quite difficult to perform. Typically currentsensors can only detect whether something is touching a device.Capacitive sensing involves measuring changes in electric fields nearthe sensor. Just like a balloon that has been rubbed on a cloth and hasa static charge can attract a person's hair when passing nearby,capacitive sensors can detect changes based on interactions of objectsand their electrical fields. Most capacitive sensing methods provideminimal information, such as simple binary decisions based on thresholdreadings. It has been quite problematic in the past to obtain much moreinformation from capacitive sensors. The present disclosure teachesapparatuses and structures employing capacitive sensing to obtaindetailed, reliable, and sophisticated information about multipleenvironmental characteristics.

FIG. 1 shows an exemplary wireless communication system 100 in whichaspects of the present disclosure can be employed. FIG. 2 schematicallyillustrates and mobile device 120. The wireless communication system 100can include a base station 110 and one or more mobile devices 120 (FIG.2), such as 120 a-120 d, within a service area 130. The wirelesscommunication system 100 can employ a wireless standard such as, forexample, a cellular voice and/or data standard.

In various embodiments, the base station 110 can communicate with theone or more mobile devices 120 according to one or more wirelessstandards including, but not limited to, GSM, GPRS, EDGE, UMTS,CDMA2000™, W-CDMA, 3GPP, HSPA, WIMAX™, IEEE 802.11x, and BLUETOOTH™. Thebase station 110 can transmit data to the mobile devices 120 on adownlink 150, and can receive data from the mobile devices 120 on anuplink 140.

The mobile devices 120 can include, for example, cell phones, wirelesstelephone handsets, personal digital assistants (PDAs), portable mediaplatforms (PMPs), portable gaming devices, tablets, laptops, netbooks,portable computers, speakers or headphones, device peripherals (such askeyboards, mice, graphics tablets, remote controls, and the like),wearable devices (such as glasses, wristwatches, heads-up displays(HUDs), pacemakers or other medical devices, and the like), pagers,electronic books, wireless e-mail devices, etc., all of which can becapable of wireless communication.

As discussed above, the mobile devices 120 can be used in a variety ofenvironments. For example, a user 160 a can hold the mobile device 120 ain his left hand. Accordingly, the user's hand may affect acharacteristic of the mobile device 120 a such as a radio characteristicof the uplink 140 and/or the downlink 150. For example, the user's handmay at least partially block the signal between at least one antenna 245(FIG. 2) of the mobile device 120 a and an antenna of the base stations110. As another example, the user's 160 a hand may at least partiallydetune the antenna 245 of the mobile device 120 a.

The proximity of the user's 160 a hand to the mobile device 120 a mayincrease the amount of radiation absorbed by the user 160 a. In anembodiment, user 160 a may hold the mobile device 120 a near his head.For example, the user 140 a may be talking on a cell phone. Accordingly,proximity of the user's 160 a hand to the mobile device 120 a mayincrease the amount of radiation absorbed by the user 160 a. In anembodiment, radiation by the mobile device 120 a may be limitedaccording to voluntary thresholds, standards, rules, and/or regulations.

For example, the mobile device 120 a may be licensed for operation bythe Federal Communications Commission (FCC), which has adopted limitsfor safe exposure to radio frequency (RF) energy. The limits can begiven in terms of a unit referred to herein as the specific absorptionrate (SAR), which is a measure of the amount of radio frequency energyabsorbed by the body when using a mobile phone. The mobile device 120 amay be configured to comply with one or more limits for safe exposure.For example, the mobile device 120 a may be configured to maintain a SARlevel equal to or less than 1.6 watts per kilogram (1.6 W/kg).

Another user 160 b can hold the mobile device 120 b in his right hand.In an embodiment, the user 160 b holds the mobile device 120 b at arm'slength. For example, the user 160 b may be using the mobile device 120 bto browse the Internet. Accordingly, the user's hand may affect acharacteristic of the mobile device 120 a such as a radio characteristicof the uplink 140 and/or the downlink 150. For example, the user's 160 bhand may at least partially block the signal between at least oneantenna 245 (FIG. 2) of the mobile device 120 b and an antenna of thebase station 110. As another example, the user's hand may at leastpartially detune the antenna 245 of the mobile device 120 a.

Due to the relative positions of the hands of the user 160 a and 160 band the mobile devices 120 a and 120 b, the right-handed user 160 b mayaffect the mobile device 120 a in a different manner than theleft-handed user 160 a. For example, an antenna 245 (FIG. 2) in themobile device 120 b may be tuned or detuned by the positioning and/ororientation of a nearby hand. As described in greater detail below withrespect to FIGS. 9A-9F, the mobile devices 120 can be configured todetect whether the users 120 are holding the mobile devices 120 a-120 din a left or right hand. Moreover, the mobile devices 120 a-120 d can beconfigured to detect a particular manner in which the users 160 a-160 dare holding the mobile devices 120 a-120 d, or whether the mobiledevices 120 a-120 d are being held at all. In an embodiment, mobiledevices 120 a and 120 b may be configured to predictively tune theantenna 245 (FIG. 2) based, for example, on a detected grip type.

The mobile devices 120 a-120 d can be placed on a surface such as atable, desk, or counter. For example, the mobile device 120 c is on atable 170. The mobile devices 120 a-120 d can be placed in an enclosedspace such as a drawer, purse, pocket, or protective case. For example,the mobile device 120 d is in a box 180. Objects near the mobiledevices, including the users 160 a-160 c, the table 170, and the box180, can include one or more materials, each of which can have aspecific dielectric constant, and may affect radio waves via any ofelectromagnetic coupling, reflection, refraction, diffraction,absorption, polarization and scattering.

In an embodiment, the mobile devices 120 a-120 d can detect one or morecharacteristics of one or more nearby objects 160 a-160 d, 170 and/or180 such as, for example, its dielectric constant and position relativeto the mobile device 120 a-120 d. In an embodiment, the mobile device120 a-120 d can predict how the objects 160 a-160 d, 170 and/or 180 willaffect the mobile device 120 a-120 d. The mobile device 120 a-120 d cananalyze the one or more detected characteristics to determine whetherthe nearby objects 160 a-160 d, 170, and/or 180 are human or likely tobe human.

For example, the mobile devices 120 a and 120 b can determine thatdetected objects are human users 160 a and 160 b, for example, based ontheir dielectric constant and/or changes in their capacitance over time.The mobile devices 120 a and 120 b may be configured to adjust (forexample, by reducing) a radio transmission power based, for example, onthe detected dielectric constant. The mobile devices 120 a and 120 b maybe configured to predictively tune an antenna 245 (FIG. 2) based, forexample, on the detected dielectric constant. In particular, the mobiledevices 120 a and 120 b can use open-loop tuning. In some embodiments,the mobile devices 120 a and 120 b can use closed-loop tuning.

The mobile device 120 b may determine that the user 160 b is not betweenthe mobile device 120 b and an antenna of the base station 110.Accordingly, the mobile device 120 b may cause a steerable antenna 245(FIG. 2) to radiate towards the base station 110. On the other hand, themobile device 120 a may determine that the user 160 a is between themobile device 120 a and the base station 110. Accordingly, the mobiledevice 120 a may cause the steerable antenna 245 to radiateomnidirectionally, isotropically, or in another direction. For example,the mobile device 120 a may connect to a second antenna of the basestation 110, and may cause the antenna 245 to radiate towards the secondnetwork antenna.

On the other hand, the mobile devices 120 c and 120 d can determine thatthe nearby objects 170 and 180 are not likely to be human, for example,based on their dielectric constant and/or changes in their capacitanceover time. The mobile devices 120 c and 120 d may be configured toadjust (for example, by increasing or decreasing) a radio transmissionpower based, for example, on the detected dielectric constant. In anembodiment, the mobile devices 120 c and 120 d may be configured toadjust the radio transmission power based on a network command based onthe detected environment characteristic. The mobile devices 120 c and120 d may be configured to predictively tune an antenna 245 (FIG. 2)based, for example, on the detected dielectric constant.

The environment around the mobile devices 120 may change over time. Forexample, the user 160 c may place the mobile device 120 a on the table170, and may carry away the mobile device 120 c. Likewise, the user 160c may approach the mobile device 120 c, and the user 160 c may move awayfrom the mobile device 120 c. The user 160 b may bring the mobile device120 b to his ear from a starting position at arm's length.

The mobile devices 120 a-120 d may be configured to detect acharacteristic of the nearby objects 160 a-160 d, 170, and/or 180 asthey move relative to those objects. For example, the mobile device 120b can be configured to detect a dielectric constant of the head of theuser 160 b head as the user 160 b brings the mobile device 120 b to hisear. As another example, the mobile device 120 c can be configured todetect a dielectric constant of the table 170 as the user 160 c movesthe mobile device 120 c away from the table.

As described in greater detail described herein, the mobile devices 120a-120 d can be configured to detect one or more characteristics of theirenvironment. For example, the mobile devices 120 a-120 d can beconfigured to detect one or more environmental characteristics such as,without limitation, one or more of an object's capacitance, dielectricconstant, type of material, conductivity, conductivity classification(i.e., conductive or not conductive), solidity, aliveness, location,distance, and orientation (including, for example, whether the mobiledevice 120 a-120 d is being held in a hand, whether the hand is aleft-hand or right-hand, ambient light, SSIDs present, time of day, dayof week, duration of stay, and/or how the hand is gripping the mobiledevice 120 a-120 d). The mobile devices 120 a-120 d can be configured todetect changes to the foregoing characteristics over time. The mobiledevices 120 a-120 d can be configured to correlate two or morecharacteristics. For example, the mobile device 120 a-120 d can beconfigured to correlate a particular dielectric constant with a type ofmaterial and to further correlate the detection of that material withone or more changes to the status of the mobile device. As anotherexample, the mobile devices 120 a-120 d can be configured to correlate aparticular degree of solidity vs. fluidity with aliveness. In variousembodiments, the mobile devices 120 a-120 d can be configured to createa lookup table and/or database with any number of cross-correlationsand/or heuristics for determining any environmental characteristic. Insome embodiments, the mobile devices 120 a-120 d can be configured withone or more classification algorithms, such as a Naïve Bayesianclassification algorithm for determining correlation between an observedcharacteristic of the environment and one or more changes to thestatus/characteristic of the mobile device.

Moreover, the mobile devices 120 a-120 d can be configured to adjust oneor more characteristics of the mobile device 120 a-120 d based, at leastin part, on the detected and/or correlated environmentalcharacteristics. Characteristics of the mobile device can include one ormore of an antenna tuning, an antenna direction, a transmit power, areceiver state, a radio frequency, a transmission encoding, a content ofdata transmission, a power state, a display state, a display content, avibration, an audio signal, data stored in a memory, internal signaling,and any other state, configuration, and/or adjustment of any componentor element of the mobile device 120 a-120 d. By way of non-limitingexample, the mobile device 120 a can detect a dielectric constant of theuser 160 a, and can determine that the user 160 a is likely to be humanbased on a lookup table. In some cases, the mobile device 120 a canobserve a dielectric constant in the environment, and use aclassification algorithm such as the Naïve Bayesian classifier todetermine that the observed dielectric constant is likely to be human.Based on the determination, the mobile device 120 a can reduce atransmit power.

Although the mobile devices 120 a-120 d are described herein as wirelessdevices, certain systems, methods, and apparatuses described herein canbe used with non-wireless devices. Moreover, the certain systemsmethods, and apparatuses described herein can be used with devices notdesigned to be moved. A person having ordinary skill in the art willappreciate that the environment detection described herein can be usedwith any suitable device.

FIG. 2 is a block diagram of a mobile device 120, which can be employedin the wireless communication system 100 of FIG. 1. The mobile device120 includes a processor 215, a memory 220, a user interface 225, anaccelerometer 227, a radio subsystem 230, a transmitter 235, a receiver240, an antenna controller 240, an antenna 245, an environment sensecontroller 250, one or more sensors 255, and a bus 260. In anembodiment, the antenna controller 240 and the antenna 245 can becombined in an antenna module 265.

Many mobile devices include additional functions and interfaces notshown. For example, a mobile phone may include a mobile phone front-endreceiver module that allows connectivity to a cellular network such as aGSM, EDGE, or 3G network, a display, a keyboard, headphones, speakers,microphones, multiple accelerometers, temperature sensors, pressuresensors, infrared sensors, a power management system, a camera, anaudio/video/image codec and player, and the like. Other interfaces suchas WLAN, BLUETOOTH™, GPS, USB, HDMI, and the like, not shown in FIG. 2,may also be present. In some embodiments, one or more of the componentscan be combined or commonly implemented, and each component can beimplemented using one or more separate elements.

The processor 215 serves to control operation of the mobile device 120.In some embodiments, the processor 215 can include one or moreprocessing elements such as, for example, central processing units(CPUs), digital signal processors (DSPs), application-specificintegrated circuits (ASICs), field-programmable gate arrays (FPGAs),etc. The processor 215 can read instructions and data from the memory220, and can write data to the memory 220. In an embodiment, theprocessor 215 can execute instructions that cause the mobile device toperform one or more methods described herein.

The memory 220 serves to store instructions and data for use by at leastthe processor 215. In various embodiments, other components of themobile device 120 can directly access the memory 220 such as by, forexample, a direct memory access (DMA) architecture via the bus 260. Thememory 220 can include one or more of read-only memory (ROM) and randomaccess memory (RAM), and non-volatile random access memory (NVRAM). Invarious embodiments, the memory 220 can include removable or fixedmachine-readable media such as, for example, a hard disk, flash memory,CD-ROM, etc.

The user interface 225 serves to receive human input and providehuman-perceivable output. In various embodiments, the user interface 225can include one or more buttons, lights, microphones, speakers, cameras,displays, heat sensors, touch sensors, proximity sensors, vibrationmodules, etc. For example, the user interface 225 can include aresistive or capacitive touchscreen display, a keyboard and/or a voicecommand system.

The accelerometer serves to detect acceleration along one or more axes.In an embodiment, the accelerometer can include one or more gyroscopicsensors such as, for example, a Hall Effect sensor. The accelerometercan include one or more magnetic sensors such as, for example, anelectronic compass. In an embodiment, the accelerometer can include anADXL345, ADXL346, or ADXL362 3-axis digital accelerometer, sold byAnalog Devices, Inc., of Norwood, Mass.

The radio subsystem 230 serves to provide radio communication inconjunction with the transmitter 235 and the receiver 240, whichfacilitate transmission and reception of data, respectively. The radiosubsystem 230 can include, for example, a cellular subsystem configuredto provide cellular communication between the mobile device 120 and thebase station 110. In an embodiment, the radio subsystem 230 can includea WI-FI™ subsystem, a BLUETOOTH™ subsystem, a GPS subsystem, an AMsubsystem, and FM subsystem, a ZIGBEE™ system, etc.

The transmitter 235 and the receiver 240 are configured to transmit andreceive data via the antenna 245, which can be controlled by the antennacontroller 240. In various embodiments, the mobile device 120 caninclude a plurality of antennas, a plurality of transmitters, and/or aplurality of receivers. The antenna 245 can include a steerable antennasuch as, for example, a phased array or smart antenna configured for oneor more of electronically steerable directionality, beamforming,multiple-input and multiple-output (MIMO) communication, space-timecoding, and the like. The antenna 245 can be a tunable antenna.

The antenna controller 240 serves to electronically control the antenna245, according at least in part to one or more instructions from theprocessor 215, the radio subsystem 230, and/or the environment sensecontroller 250. For example, the antenna controller 240 canelectronically steer the antenna 245 based on sensor readings and/orcalculation at the environment sense controller 250. The antennacontroller 240 can be configured to perform active impedance matchingfor the antenna 245. The antenna controller 240 can be configured totune the antenna 245 based on an external command, for example, from theprocessor 215.

In an embodiment, the antenna 245 and the antenna controller 240 can becombined in the antenna module 265. In an embodiment, the antenna module265 can include an integrated adaptive antenna solution such as, forexample, the EtherSmart LTE 1.0™ antenna module sold by EthertronicsInc. of San Diego, Calif. In an embodiment, the antenna module 265 caninclude the EtherBook LTE 1.0™ antenna module sold by Ethertronics Inc.of San Diego, Calif.

The environment sense controller 250 serves to read environmentalinformation from the one or more sensors 255. In an embodiment, theenvironmental information can be derived, at least in part, from one ormore capacitive readings. In an embodiment, the environment sensecontroller 250 can be configured to independently perform one or morereadings, and computations on the readings. The readings and/orderivations of the readings may be referred to as observed capacitances.The environment sense controller 250 can be configured to perform thereadings and/or computations in response to one or more detectedenvironmental changes. Based on the observed capacitances, theenvironment sense controller 250 may be configured with a classificationalgorithm, such as a Naïve Bayesian classifier to process one or moreobserved capacitances to determine one or more characteristics of theenvironment.

In various embodiments, the environment sense controller 250 can providethe readings and/or computation results to the processor 215, the radiosubsystem 230, and/or the memory 220. The environment sense controller250 can be configured to provide one or more control signals to theantenna controller 240 based on the readings and/or computation results.

The environment sense controller 250 can be a proximity detection modulefor use in applications such as tablet PCs, cell phones, and otherportable devices. For example, the environment sense controller 250 caninclude a capacitive sensor with sub-fF resolution, and integratedtemperature compensation abilities, thereby enabling more reliableproximity detection in handheld devices. The environment sensecontroller 250 can include an integrated capacitance-to-digitalconverter (CDC) with on-chip environmental calibration. The CDC can becapable of sensing changes in the capacitance of sensors 255 andregistering a sensor activation. The environment sense controller 250can be configured for use with single or multiple electrode capacitancesensors, mutual capacitance or self capacitance sensors. The environmentsense controller 250 can include an active shield output to reduce noisepickup in the sensor 255 and to control the directional sensitivity ofthe capacitive measurement. The environment sense controller 250 caninclude on-chip calibration logic to compensate for changes in theambient environment. The environment sense controller 250 can perform acalibration sequence automatically and at continuous intervals when thesensors 255 are not activated. Accordingly, the environment sensecontroller 250 can reduce or eliminate false or non-registering sensoractivations due to a changing environment. In an embodiment, theenvironment sense controller 250 can include the CapTouch™ programmablecontroller sold by Analog Devices, Inc., of Norwood, Mass.

The sensors 255 serve to detect a characteristic of the environmentaround the mobile device 120. For example, the sensors 255 can includeelectrodes configured to facilitate capacitive readings. As discussedbelow with respect to FIGS. 4A-B, the sensors 255 can include anelectrode on a single or multiple-layer printed circuit board (PCB), aflex circuit, printed carbon, and/or any other single or multiple layerconductor-insulator stack. In various embodiments, the sensors 255 caninclude photo-diodes, thermal sensors, etc. The sensors 255 can connectto the environment sense controller 250 via a shielded trace, wire,cable, optical link, and/or wireless link.

The bus 260 serves to provide communication between the variouscomponents of the mobile device 120. In various embodiments, the bus 260can include one or more data lines, power lines, control lines, statuslines, etc. Additionally, or alternatively, the various components ofthe mobile device 120 can be connected by another mechanism such as, forexample, individual end-to-end links, a hierarchical or switchednetwork, etc. Although various connections are illustrated in FIG. 2, aperson skilled in the art will understand that other arrangements arepossible, and any component may be connected to any other component.

FIG. 3 is a schematic diagram of an environment sense system 300,according to an embodiment. In an embodiment, the environment sensesystem 300 can be employed in the wireless communication system 100,discussed above with respect to FIG. 1. In an embodiment, theenvironment sense system 300 can be implemented, at least in part, byone or more components of the mobile device 120, discussed above withrespect to FIGS. 1 and 2. The environment sense system 300 can serve tosense one or more characteristics of the environment around the mobiledevice 120. For example, the environment sense system 300 can beconfigured to detect the proximity of a finger or other object 310.

In the illustrated embodiment, the environment sense system 300 includesthe environment sense controller 250, at least one sensor 255, and adielectric 320. In an embodiment, the dielectric 320 can include atleast part of a housing (not shown) of the mobile device 120 (FIG. 2).In an embodiment, the dielectric 320 can include a plastic cover.

As shown in FIG. 3, the environment sense controller 250 includes atleast a measurement pin 330, a switch matrix 340, an excitation source350, and a sigma-delta (Σ-Δ) analog-to-digital converter (ADC) 360. Invarious embodiments, the environment sense controller 250 can includeadditional components not shown, and may omit one or more componentsshown. For example, the environment sense controller 250 can implement asuccessive approximation register (ADC) architecture instead of, or inaddition to, the Σ-Δ architecture. In various embodiments where the Σ-ΔADC 360 is configured to read and convert capacitive measurements, theΣ-Δ ADC 360 can be referred to as a capacitance-to-digital converter(CDC) or a Σ-Δ CDC.

The measurement pin 330 serves to connect the sensor 255 to theenvironment sense controller 250. Although one measurement pin 330 isshown, the environment sense controller 250 can include additional pins330. Each pin 330 can be connected to a separate sensor 255, a shieldtrace, a reference voltage, etc. In an embodiment, the environment sensecontroller 250 can include 13 pins 330. Accordingly, in an embodiment,the environment sense controller 250 can interface with up to 13 sensors255.

The switch matrix 340 serves to selectively route the measurement pin330 to the Σ-Δ ADC 360 and the excitation source 350. As will bediscussed in greater detail below with respect to FIG. 7, the switchmatrix 340 can be configured to route any set of input sensors 255 byprogramming one or more on-chip registers 710 (FIG. 7). The registerscan also be programmed to control functions such as averaging, offsets,and gains for each of the sensors 255. An on-conversion sequencer 720(FIG. 7) can control how each of the capacitance inputs is polled.

In the illustrated embodiment, the environment sense controller 250 isconfigured to measure capacitance readings from the sensor 255. Asdiscussed below with respect to FIGS. 4A-B, the sensors 255 can includea single electrode on a single- or multiple-layer printed circuit board(PCB)), flex circuit, and/or printed conductor. In the environment sensesystem 300, the sensor electrode on the PCB comprises one plate of avirtual capacitor. The other plate of the capacitor is provided by anexternal object 310, such as a user's finger, which is grounded withrespect to the sensor input.

The excitation source 350 serves to output an excitation signal to thepin 330. In an embodiment, the excitation signal is 250 kHz.Accordingly, when the switch matrix 340 connects the excitation source350 to the pin 330, the excitation signal charges the plate of thecapacitor formed by the sensor 255. When the object 310 comes close tothe sensor, the virtual capacitor is formed, with the object 310 actingas the second capacitor plate.

The Σ-Δ ADC 360 serves to change a capacitive input signal into adigital value sample. Accordingly, when the switch matrix 340 connectsthe Σ-Δ ADC 360 to the pin 330, the Σ-Δ ADC 360 digitizes the virtualcapacitance formed by the sensor 255 and the object 310, based on thecharge at the sensor 255. In an embodiment, the Σ-Δ ADC 360 can be a16-bit modulator. Accordingly, the Σ-Δ ADC 360 can be configured tooutput a 16-bit data stream. In an embodiment, the Σ-Δ ADC 360 caninclude a differential amplifier (not shown). Accordingly, the Σ-Δ ADC360 can be configured with a positive and a negative input. The switchmatrix 340 can be configured to route any set of input sensors 255, theinternal sensor 780, or any other signal or node, to either the positiveand/or the negative input of the Σ-Δ ADC 360.

In an embodiment, the excitation source 350, in conjunction with theswitch matrix 340, is configured to apply a square wave excitation tothe pin 330. The Σ-Δ ADC 360 is configured to sample the charge at thepin 330. The output of the Σ-Δ ADC 360 can be further processed via adigital filter (not shown), and the resulting digital data can be storedin a register (not shown).

In an embodiment, when the object 310 approaches the sensor 255, theenvironment sense controller 250 can measure a change in the totalcapacitance associated with that sensor 255. For example, if the changein total capacitance exceeds a threshold, the environment sensecontroller 250 can interpret the change as a sensor “activation.” Theenvironment sense controller 250 can include one or more thresholdlimits to determine when a sensor activation occurs.

FIGS. 4A-4B show an exemplary sensor 255 that can be employed in theenvironment sense system 300 of FIG. 3. The illustrated sensor 255includes two PCB layers. FIG. 4A shows a top layer 410 of the sensor255, according to an embodiment. FIG. 4B shows a bottom layer 420 of thesensor 255, according to an embodiment.

In the illustrated embodiment of FIG. 4A, the top layer 410 of thesensor 255 includes a sensor plate 430, such as copper, signal trace440, one or more shield traces 450, and one or more second layer planetraces 460. The signal trace 440 contacts the sensor plate 430, and runsfrom the sensor 255 to a measurement pin 330 (FIG. 3) of the environmentsense controller 250 (FIGS. 2-3). The shield traces 450 and/or secondlayer plane traces 460 can also connect to other measurement pins 330 ofthe environment sense controller 250, can be grounded, or can beconnected to a bias voltage. In an embodiment, the traces 440, 450, and460 can be connected as shown below in FIG. 8.

In the illustrated embodiment of FIG. 4B, the bottom layer 420 of thesensor 255 forms a second layer plane. The second layer plane extendsunder the entire sensor plate 430. The bottom layer 420 can connect, viathe second layer plane traces 460, to a measurement pin 330 of theenvironment sense controller 250, can be grounded, or can be connectedto a bias voltage. In general, a sensor with a larger area provides alarger electrical field with which the user can interact and, therefore,provides a greater response when activated.

With reference to FIGS. 4A-4B, the sensor 255 can include any PCBmaterial suitable for capacitance sensor design. In an embodiment, thesensor can be manufactured using industry-standard techniques. Thesensor 255 can include one or more of FR4, flexible printed circuit(FPC), polyethylene terephthalate (PET), glass, etc. In variousembodiments, the sensor plate 430 and/or the bottom layer 420 caninclude one or more of copper, indium tin oxide (ITO), silver, andcarbon.

In an embodiment, one or more of the traces 440, 450, and 460 has awidth of about 0.1-0.3 mm such as about 0.2 mm. In an embodiment, one ormore of the traces 440, 450, and 460 has a minimum clearance betweentraces of 0.15 mm. In an embodiment, one or more of the traces 440, 450,and 460 has a length less than 10 cm. In an embodiment, the sensor plate430 can have a length (laterally in FIG. 4A) of about 5-15 mm such asabout 10 mm. In an embodiment, the sensor plate 430 can have a width ofabout 1-4 mm such as about 2 mm.

FIGS. 5A-5D are schematic diagrams showing exemplary sensor placementswithin the mobile device 120 of FIG. 2, according to variousembodiments. As shown in FIGS. 5A-5D, the mobile device 120 includes theenvironment sense controller 250, described above with respect to FIGS.2-3, and two or more sensors 255. Although various numbers of sensors255, and configurations thereof, are shown, a person having ordinaryskill in the art will appreciate that other numbers of sensors can beused, and the sensors 255 can be placed in additional configurations notshown. In the illustrated embodiments of FIGS. 5A-5D, the sensors 255are vertically oriented, with the sensor plates 430 (FIG. 4A) parallelto left and right faces 521 and 522 of the mobile device 120. In variousembodiments, the sensors 255 can have mixed orientations, and haveorientations other than the illustrated vertical and horizontalorientations.

Multiple sensors 255 may be distributed around a device, for example, toprovide greater granularity and increase signal to noise ratio. In anembodiment, the processor 215 (FIG. 2) can average the readings ofmultiple sensors 255 that are configured to sense the same surface. Theprocessor 215 can determine that one or more sensors 255 are configuredto sense the same surface, for example, by comparing time averagedmagnitudes from each sensor 255. The processor 215 can time-average thereadings of each sensor 255, for example, to reduce potential amplitudevariations introduced by various parasitic stimulus sources.

FIG. 5A is a schematic plan view of an embodiment of the mobile device120 with two sensors 255: a left sensor 255 a, and a right sensor 255 b.The left sensor 255 a can be located on a left side of the mobile device120, facing the left face 521 of the mobile device 120. The right sensor255 b can be located on a right side of the mobile device 120, facingthe right face 522 of the mobile device 120. The left and right sensors255 a and 255 b can be at a position along the left and right faces 521and 522, respectively, approximately one-third to one-half (such asone-quarter) of the way from a bottom face 524 to a top face 525. Asdiscussed above with respect to FIGS. 4A-4B, the sensors 255 a and 255 bcan have a length in the x-direction of about 5-15 mm and a width in thez-direction (FIG. 5D) of about 1-3 mm.

FIG. 5B is a top view of an embodiment of the mobile device 120 with twosensors 255: the left sensor 255 a, and the right sensor 255 b. The leftsensor 255 a can be located on a left side of the mobile device 120,facing the left face 521 of the mobile device 120. The right sensor 255b can be located on a right side of the mobile device 120, facing theright face 522 of the mobile device 120. The left and right sensors 255a and 255 b can be at a position along the left and right faces 521 and522, respectively, substantially extending from a bottom face 524 to atop face 525. As discussed above with respect to FIGS. 4A-B, the sensors255 a and 255 b can have a width of about 1-3 mm. The sensors 255 a and255 b can have a length of about 70-90% of height of the mobile device120 such as, for example, about 70-100 mm.

FIG. 5C is a schematic plan view of an embodiment of the mobile device120 with three sensors 255: the left sensor 255 a, the right sensor 255b, and a top sensor 255 c. The left sensor 255 a can be located on aleft side of the mobile device 120, facing the left face 521 of themobile device 120. The right sensor 255 b can be located on a right sideof the mobile device 120, facing the right face 522 of the mobile device120. The top sensor 255 c can be located on a top side of the mobiledevice 120, facing the top face 525 of the mobile device 120. The leftand right sensors 255 a and 255 b can be at a position along the leftand right faces 521 and 522, respectively, approximately centeredbetween the bottom face 524 to a top face 525. The top sensor 255 c canbe at a position along the top face 525, approximately halfway betweenthe left face 521 and the right face 522. As discussed above withrespect to FIGS. 4A-B, the sensors 255 a, 255 b, and 255 c can have alength of about 5-15 mm and a width of about 1-3 mm. In variousembodiments, the sensors 255 a, 255 b, and 255 c can have a length ofbetween approximately 5 mm and approximately 100 mm.

FIG. 5D is a schematic end view of the embodiment of the mobile devices120 shown in FIGS. 5-5C. As shown, the left and right sensors 255 a and255 b can be at a position along the left and right faces 521 and 522,respectively, approximately centered between a back face 526 and a frontface 527.

FIGS. 6A-6D are schematic diagrams showing exemplary horizontal sensorplacements within the mobile device 120 of FIG. 2, according to variousembodiments. As shown in FIGS. 6A-D, the mobile device 120 includes theenvironment sense controller 250, described above with respect to FIGS.2-3, and two or more sensors 255. Although various numbers of sensors255, and configurations thereof, are shown, a person having ordinaryskill in the art will appreciate that any number of sensors can be used,and the sensors 255 can be placed in additional configurations notshown. In the illustrated embodiments of FIGS. 6A-6D, the sensors 255are horizontally oriented, with the sensor plates 430 (FIG. 4A) parallelto front and back faces 527 and 526 (FIG. 6D) of the mobile device 120.

FIG. 6A is a schematic plan view of an embodiment of the mobile device120 with two sensors 255: the left sensor 255 a, and the right sensor255 b. The left sensor 255 a can be located on a left side of the mobiledevice 120, facing the back face 526 of the mobile device 120. The rightsensor 255 b can be located on a right side of the mobile device 120,facing the back face 526 of the mobile device 120. The left and rightsensors 255 a and 255 b can be at a position along (e.g., within about0-1.5 mm of) the left and right faces 521 and 522, respectively, andproximate (e.g., within about 0-1.5 mm) one of the front and back faces527 and 526. As discussed above with respect to FIGS. 4A-B, the sensors255 a and 255 b can have a length in the x-direction of about 5-15 mmand a width in the y-direction (FIG. 6D) of about 1-3 mm.

FIG. 6B is a schematic plan view of an embodiment of the mobile device120 with two sensors 255: the left sensor 255 a, and the right sensor255 b. The left sensor 255 a can be located on a left side of the mobiledevice 120, facing the back face 526 of the mobile device 120. The rightsensor 255 b can be located on a right side of the mobile device 120,facing the back face 526 of the mobile device 120. The left and rightsensors 255 a and 255 b can be at a position along the left and rightfaces 521 and 522, respectively, extending from the bottom face 524 tothe top face 525. As discussed above with respect to FIGS. 4A-B, thesensors 255 a and 255 b can have a width of about 1-3 mm. The sensors255 a and 255 b can have a length approximately equal to about 70-99% ofa length of the mobile device 120 such as, for example, approximately70-100 mm.

FIG. 6C is a schematic plan view of an embodiment of the mobile device120 with three sensors 255: the left sensor 255 a, the right sensor 255b, and a top sensor 255 c. The left sensor 255 a can be located on aleft side of the mobile device 120, facing the back face 526 of themobile device 120. The right sensor 255 b can be located on a right sideof the mobile device 120, facing the back face 526 of the mobile device120. The top sensor 255 c can be located on (e.g., within about 0-1.5mm) a top side of the mobile device 120, facing the back face 526 of themobile device 120. The left and right sensors 255 a and 255 b can be ata position along the left and right faces 521 and 522, respectively,approximately centered between the bottom face 524 to a top face 525.The top sensor 255 c can be at a position along the top face 525,approximately centered between the left face 521 and the right face 522.As discussed above with respect to FIGS. 4A-4B, the sensors 255 a, 255b, and 255 c can have a length of 5-10 mm and a width of 1-3 mm. Invarious embodiments, the sensors 255 a, 255 b, and 255 c can have alength of between approximately 5 mm and approximately 100 mm.

FIG. 6D is a schematic end view of the embodiment of the mobile device120 shown in FIG. 6A. As shown, the left and right sensors 255 a and 255b can be at a position along the left and right faces 521 and 522,respectively, substantially against (e.g., within about 0-1.5 mm) of theback face 526. In an embodiment, one or more sensors 255 can besubstantially against (e.g., within about 0-1.5 mm) of the front face527.

In various embodiments, the sensors 255 can be located within the mobiledevice 120 such that there is an air gap between the sensor 255 and thehousing of the mobile device 120. The air gap can be relatively small,for example, smaller than a dimension of the sensor 255. In anembodiment, the sensor 255 can be attached to, be placed nearby, orembedded in the internal surfaces of the mobile device's 120 housingmaterial. In some embodiments, there may be no air gap.

In one embodiment, the sensor 255 can be attached using AdhesiveTransfer Tape 467MP (double-sided tape), sold by 3M Company of St. Paul,Minn., or similar. In an embodiment, the mobile device 120 can include ahousing material having a thickness between 1 mm and 2 mm. In anembodiment, the dielectric constant of the housing material affects thesensitivity of the sensors 255. For example, the higher the dielectricconstant of the covering material, the greater the magnitude responsecan be from the sensors 255. For embodiments of the mobile device 120that include a metal chassis, the sensors 255 may be located withoutconstraint, and can include appropriate shielding in accordance withapplication requirements.

FIG. 7 is a schematic view of the environment sense controller 250 ofFIGS. 2 and 3, according to an embodiment. As described above, withrespect to FIG. 3, the environment sense controller 250 includesmeasurement pins 330 corresponding to a plurality capacitancemeasurement inputs CIN0-CIN12 (13 shown), the switch matrix 340, theexcitation source 350, and the sigma-delta (Σ-Δ) analog-to-digitalconverter (ADC) 360. In the illustrated embodiment, the environmentsense controller further includes control and data registers 710, aconversion sequencer 720, a calibration engine 730, calibration memory740, power-on reset logic 750, serial interface and control logic 760,interrupt and general-purpose input/output (GPIO) logic 770, an internalsensor 780, and a plurality of additional input/output pins, illustratedas AC_(SHIELD), V_(CC), V_(DRIVE), GND, BIAS, S0-S3, INT′, and GPIO. Invarious embodiments, the environment sense controller 250 can includeadditional components not shown, and may omit one or more componentsshown.

As described above with respect to FIG. 3, the capacitance measurementinputs 330 serve to connect one or more sensors 255 (FIGS. 2-6D) to theenvironment sense controller 250. Each of the capacitance measurementinputs 330 can be connected to a separate sensor 255, a shield trace, areference voltage, etc. The illustrated environment sense controller 250can interface with up to 13 sensors 255.

As described above with respect to FIG. 3, the switch matrix 340 servesto selectively route the measurement pin 330 to the Σ-Δ ADC 360 and theexcitation source 350. Each input pin 330 can be tied to either anegative or positive input on the Σ-Δ ADC 360, can be left floating, andcan be internally connected to the pin BIAS to reduce cross-coupling. Inan embodiment, unconnected pins of the plurality of pins 330 measurementcan be connected to the pin BIAS.

Moreover, each input connection or pin 330 from the external capacitancesensors 255 (FIGS. 2-6D) to the Σ-Δ ADC 360 of the environment sensecontroller 250 can be uniquely configured by using stage configurationregisters in the control and data registers 810. The stage configurationregisters can be used to configure the input pin 330 connection setups,sensor offsets, sensor sensitivities, and sensor limits. Multipleconfigurations can be stored in the control and data registers 710. Inan embodiment, each configuration can be referred to as a stage. Rulesfor data handling for each sensor 255 can be individually configured ineach stage. For example, a sensor 255 can have different sensitivity andoffset values in two different stages.

As described above with respect to FIG. 3, the excitation source 350serves to output an excitation signal to one or more of the measurementpins 330, according to the configuration of the switch matrix 340. In anembodiment, the excitation signal is at 250 kHz.

As described above with respect to FIG. 3, the Σ-Δ ADC 360 serves tochange a capacitive input signal into a digital value sample. In anembodiment, the Σ-Δ ADC 360 implements a Σ-Δ architecture with 16-bitresolution. The switch matrix 340 can connect any of the measurementinput pins 330 to the Σ-Δ ADC 360. The Σ-Δ ADC 360 can operate at asampling frequency of 250 kHz.

The control and data registers 710 can control the decimation rate, oroversampling ratio, of the Σ-Δ ADC 360. In an embodiment, the Σ-Δ ADC360 can be configured for a decimation rate, or oversampling ratio, of64, 128, or 256, with an output period of 0.768 ms, 1.536 ms, or 3.072ms, respectively. The Σ-Δ ADC 360 can employ an averaging decimationprocess, wherein the Σ-Δ ADC 360 takes a number of samples and outputsan averaged result.

The decimation process can reduce the amount of noise present in thefinal Σ-ΔADC 360 result. However, the higher the decimation rate, thelower the output rate per stage. Accordingly, there is a trade-offpossible between the amount of noise in the Σ-Δ ADC 360 output and thespeed of sampling.

In an embodiment, the environment sense controller 250 can include twoprogrammable digital to analog converters (DACs) (not shown). The DACscan compensate for any parasitic capacitances included in the Σ-Δ ADC360 measurement. Offsets can be caused by, for example, straycapacitance to ground. As discussed in greater detail herein, the DACscan subtract a capacitance of a housing of the mobile device 120.

The control and data registers 710 can serve to store preferences andconfigurations used to control one or more of the switch matrix 340, theΣ-Δ ADC 360, the conversion sequencer 720, the calibration engine 730,the power-on reset logic 750, the serial interface and control logic760, the interrupt and GPIO logic, 770, etc. In various embodiments, thecontrol and data registers 710 can be organized into one or moreregister banks, and individual registers and/or sets of registers can beimplemented separately. In various embodiments, the control and dataregisters 710 can include one or more of read-only memory (ROM), randomaccess memory (RAM), and non-volatile random access memory (NVRAM).

The conversion sequencer 720 serves to implement conversion control forthe input channels corresponding to the measurement pins 330. In anembodiment, up to 12 conversion configurations and calculations, orstages, can be performed in one sequence. For example, each of the 12conversion stages can measure the input from a different sensor 255(FIGS. 2-6D). The control and data registers 710 can store uniqueconfigurations for each stage and can support multiple capacitancesensor 255 interface requirements. For example, a slider sensor can beassigned to a first subset of stages, and a button sensor can beassigned to a second subset of stages. For each conversion stage, theswitch matrix 340 that selectively connects the inputs CIN0-CIN12 to theconverter can have a unique setting.

The calibration engine 730 serves to automatically adjust one or moreaspects of the environment sense controller 250, to environmentalconditions that have an effect on the ambient levels of the sensors 255(FIGS. 2-4). In various embodiments, the output levels of thecapacitance sensors 255 can be sensitive to temperature, humidity, and,in some cases, solid contaminants. The calibration engine 730 canprovide enhanced reliability of sensor 255 performance by continuously,periodically, and/or intermittently monitoring Σ-Δ ADC 360 ambientlevels and compensating for any environmental changes by adjusting oneor more threshold sensitivity values in the control and data registers710. As referred to herein, the Σ-Δ ADC 360 ambient level is defined asthe output level of the capacitance sensor 255 during periods when ameasurement target is not approaching or in contact with the sensor 255.

After the environment sense controller 250 is initially configured, thecalibration engine 730 can run compensation logic automatically witheach conversion at the Σ-Δ ADC 360, when a measurement target is notapproaching or in contact with the sensor 255 (FIGS. 2-6D). Accordingly,the calibration engine 730 can compensate for rapidly changingenvironmental conditions. In an embodiment, the control and dataregisters 710 can include ambient compensation control registersconfigured to provide the calibration engine 730 with access to generalsetup and controls for the compensation algorithm.

By way of example, an uncalibrated capacitance sensor 255 (FIGS. 2-6D)can create sensor detection errors when the ambient levels drift overtime due to changing environmental condition. Environmental conditionscan change when, for example, the mobile device 120 (FIGS. 1-2) is movedfrom one location to another, placed on a different surface, picked up,etc. Without calibration, initial threshold levels may remain constantwhile the ambient levels drift upward or downward. Accordingly, withoutcalibration, the environment sense controller 250 may fail to detect,for example, a user contact.

In an embodiment, the calibration engine 730 can execute an adaptivecalibration configured to reduce or prevent the sensor detection errorsdescribed above. The calibration engine 730 can monitor the Σ-Δ ADC 360ambient levels and adjust one or more parameters in the control and dataregisters 710. Exemplary parameters include conversion offsets,sensitivity thresholds, and the like. In an embodiment, the calibrationengine 730 can continuously, periodically, or intermittently monitor theoutput levels of each sensor 255 (FIGS. 2-6D), and can automaticallyrescale threshold levels in proportion to the sensor area covered by adetected object. As a result, the calibration engine 730 can maintainthreshold and sensitivity levels for all users regardless of, forexample, the size of their finger (see object 310 of FIG. 3). Asreferred to herein, the threshold level can be referenced from theambient level, and can be defined as the Σ-Δ ADC 360 output level thatmust be exceeded before a valid sensor contact can be registered. Thesensitivity level can be defined as how sensitive the sensor 255 must bebefore a valid contact can be registered.

In an embodiment, the calibration engine 730 can track the averagemaximum and minimum values measured from each sensor 255 (FIGS. 2-6D).The average maximum and minimum values can provide an indication of howthe user is interacting with the sensor 255. A large object 310 (FIG. 3)can cause relatively large average maximum or minimum values, whereas asmall finger 310 can cause relatively smaller values. When the averagemaximum or minimum value changes, the calibration engine 730 can rescalethe threshold levels as appropriate for the current environment. Theadaptive calibration can include a closed-loop to enhance thereliability and repeatable operation of every sensor 255 connected tothe environment sense controller 250, even when subject to dynamicenvironmental conditions.

The calibration memory 740 serves to store compensation data for eachconversion stage, as well as setup information specific for each stage.In an embodiment, the calibration engine 730 can be configured to writethe compensation data and/or setup information to the calibration memory740. In an embodiment, the calibration memory 740 can include one ormore of read-only memory (ROM) random access memory (RAM), andnon-volatile random access memory (NVRAM).

The power-on reset logic 750 serves to control power and reset behaviorof the environment sense controller 250. For example, environment sensecontroller 250 can have three operating modes. In a full power mode, theenvironment sense controller 250 can remain fully powered. The fullpower mode can be suited for applications where power is not a concern(for example, mobile devices configured with an AC power supply). In alow power mode the environment sense controller 250 can automaticallypower down when no sensor 255 (FIGS. 2-6D) is active. The low power modecan provide power savings compared with full power mode, and can besuited for mobile applications, where power is limited. In a shutdownmode, the environment sense controller 250 can shut down completely.

In an embodiment of the full power mode, all sections of the environmentsense controller 250 remain fully powered and converting at all times.While a sensor 255 (FIGS. 2-6D) is activated (for example, by beingtouched or approached by an object 310 as in FIG. 3), the Σ-Δ ADC 360can process the sensor data. When no sensor 255 is activated (forexample, not touched or approached), the calibration engine 730 canmeasure the ambient capacitance level and perform compensation. In fullpower mode, the Σ-Δ ADC 360 can be configured to convert at a constantrate.

In an embodiment of the low power mode, the environment sense controller250 remains in a reduced power state while no sensor 255 (FIGS. 2-6D) isactivated. In the reduced power state, for example, the Σ-Δ ADC 360 canreduce its conversion frequency, thereby reducing its power consumption.The Σ-Δ ADC 360 can perform a conversion after a preset or adjustabledelay, and the calibration engine 730 and power-on reset logic 750 canuse the conversion result to update compensation parameters anddetermine whether the sensors 255 are active. In an embodiment, thevariable delay can be in the range of about 100 ms to 1 s, such as oneof 200 ms, 400 ms, 600 ms, and 800 ms. In an embodiment, the delaybefore the environment sense controller 250 transitions from the fullpower mode to the low power mode, after the sensor 255 is no longeractivated, is configurable.

The serial interface and control logic 760 serves to provide serialcommunication between the environment sense controller 250 and anotherdevice. For example, the environment sense controller 250 can use theserial interface and control logic 760 to transfer conversion results tothe processor 215 (FIG. 2). In the illustrated embodiment, the serialinterface and control logic 760 uses the pins V_(DRIVE), and S0-S3. Inan embodiment, the serial interface and control logic 760 can implementan industry standard, such as the 2-wire I²C serial interface protocol,serial peripheral interface (SPI), RFEE, or any other serial or parallelinterface. For example, the environment sense controller 250 can operateas a slave device on the bus 260 (FIG. 2), which can include an I²Cserial bus. Accordingly, the pins S0-S3 can correspond to I²C signalsSDA, SCLK, and address select pins ADD0, and ADD1, respectively.

The pin V_(DRIVE) serves to provide a supply voltage for one or morepins associated with the serial interface such as, for example, S0-S3,INT′, and GPIO. In an embodiment, the pin V_(DRIVE) can allow theenvironment sense controller 250 to interface directly with otherdevices that have a supply voltage less than a minimum operating voltageof the environment sense controller 250, without externallevel-shifters. In an embodiment, the pin V_(DRIVE) can be connected toarbitrarily low voltage supplies and as high as VCC. For example, thepin V_(DRIVE) can be above 1.65 V.

The interrupt and GPIO logic 770 serves to provide general-purposeinput, output, and interrupt capabilities to the environment sensecontroller 250. The GPIO pin can be configured as an input or an output,and can be disabled (for example, set to high-impedance). In anembodiment, the control and data registers 710 can store theconfiguration of the GPIO pin. When the pin GPIO is configured as anoutput, the voltage level on the pin can be set to either a low level ora high level. Moreover, the pin GPIO can be configured as active high oractive low, as well as either edge triggered or level triggered.

The pin INT′ serves to provide an interrupt output that can be connectedto another device. For example, the environment sense controller 250 canuse the pin INT′ to notify the processor 215 (FIG. 2) that an interruptevent has occurred. In an embodiment, the environment sense controller250 can be configured for three types of interrupt events: aconversion-complete interrupt, a sensor-touch interrupt, and a GPIOinterrupt. Each interrupt can include one or more enable and statusregisters, for example, in the control and data registers 710. Theconversion-complete and sensor-touch (sensor-activation) interrupts canbe enabled on a per-conversion-stage basis.

During a conversion-complete interrupt, the INT′ signal can assert lowto indicate the completion of a Σ-Δ ADC 360 conversion stage and thatnew conversion result data is available in the control and dataregisters 710. The conversion-complete interrupt can be independentlyenabled for each conversion stage. During a sensor-active interrupt, theINT′ signal can assert when the environment sense controller 250 detectsthat a sensor 255 (FIGS. 2-6D) is activated (for example, by beingtouched or approached) and again when the sensor 255 is no longeractivated. When the GPIO pin is configured as an input, the pin INT′ canbe controlled by the GPIO pin.

The internal sensor 780 serves to compensate for internal changes on theenvironment sense controller 250. In an embodiment, the internal sensor780 can provide a temperature measurement as a capacitance value. TheΣ-Δ ADC 360 can measure the capacitance value provided by the internalsensor 780, and can subtract the capacitance of the internal sensors 780from the capacitance of an external sensor 255 (FIGS. 2-6D), therebymitigating the effect of internal temperature drift on the sensor 255.In an embodiment, the Σ-Δ ADC 360 can perform the subtraction byconnecting the external sensor 255 to the positive terminal of the Σ-ΔADC 360, and connecting the internal sensor 780 to the negativeterminal. Configured in this manner, the Σ-Δ ADC 360 result can reduceor eliminate the effect of temperature changes on the internal circuitryof the environment sense controller 250.

In an embodiment, measuring the capacitance from the internal sensor 780can cause input paths to both Σ-Δ ADC 360 terminals to be matched.Accordingly, power supply rejection of the Σ-Δ ADC 360 can be improved.Moreover, any drift due to temperature may not affect the Σ-Δ ADC 360result, because the internal sensor 780 can counteract the drift.

The pin BIAS serves to provide a bias reference to the environment sensecontroller 250. In an embodiment, the pin BIAS is connected internallyto a bias node (not shown) of the environment sense controller 250. Inan embodiment, a 100 nF capacitor can be connected between the pin BIASand ground. The bias node can be configured such that the voltage at thepin BIAS is half of V_(CC).

The pin AC_(SHIELD) serves to reduce or eliminate capacitance-to-groundpickup. Because the environment sense controller 250 can be configuredto measure the capacitance between one or more of the measurement pins330 and ground, any capacitance to ground on the signal path between themeasurement pins 330 and the sensors 255 (FIGS. 2-6D) can be included inthe Σ-Δ ADC 360 conversion result. Accordingly, to reduce straycapacitance to ground, the AC_(SHIELD) signal can be used to shield theconnection between the sensor 255 and the measurement pin 330. The planearound the sensors can also be connected to the pin AC_(SHIELD).

In an embodiment, the AC_(SHIELD) output is the same signal waveform asthe excitation signal. Therefore, there is little or no AC currentbetween one or more excited pins CIN and AC_(SHIELD), and anycapacitance between these pins may not affect charge transfer. In anembodiment, the sensors 255 can be located less than 10 cm from theenvironment sense controller 250. The environment sense controller 250can be placed on a separate PCB from that of the sensors 255. In someembodiments implementing proximity detection applications, the pinAC_(SHIELD) may not be used. Instead, in some embodiments, the internalbias node (which can be connected to the pin BIAS) can be connected toany shield layers or traces, using the switch matrix 340.

In an embodiment, the environment sense controller 250 can be configuredto perform wake-up proximity detection. This feature can provide theability to detect when a user or other object is approaching a mobiledevice 120. For example, the Σ-Δ ADC 360 can continuously, periodically,and/or intermittently monitor all capacitance sensors 255 (FIGS. 2-6D)for first-order proximity detection. In an embodiment, the first-orderproximity can be determined by a fast filter in conjunction with one orcomparators configured to detect when a user or other object isapproaching or leaving a sensor, and/or when an object hovers over asensor or approaches a sensor very slowly. When the Σ-Δ ADC 360 detectsfirst-order proximity detection, the calibration engine 730 can ceasecalibration measurements, and the Σ-Δ ADC 360 can be automaticallyconfigured into a more aggressive mode to detect a valid sensoractivation (for example, a second-order detection).

In certain situations, when an object hovers over a sensor 255 (FIGS.2-6D) for a long time, the Σ-Δ ADC 360 can detect first-order proximityfor a long period. The calibration engine 730 can suspend environmentalcalibration while proximity is detected, but changes may still occur tothe ambient capacitance level during the proximity event. Accordingly,the ambient value stored in the calibration memory 740 may no longerrepresent the actual ambient value. In this case, even when the objectis not in close proximity to the sensor 255, the Σ-Δ ADC 360 maycontinue to detect first-order proximity due to a lack of calibration.For example, user interaction can create moisture on the sensor 255,causing the new sensor ambient value to be different from the expectedvalue. In an embodiment, the calibration engine 730 can automaticallyforce a recalibration internally, for example when the Σ-Δ ADC 360detects first-order proximity for an amount of time surpassing arecalibration timeout. Accordingly, the ambient values can berecalibrated, regardless of how long the object over the sensor 255. Arecalibration can increase environment sense controller 250 performance.

In an embodiment, the calibration engine 730 recalibrates automaticallywhen the measured Σ-Δ ADC 360 value exceeds the stored ambient value byan preset or adjustable recalibration threshold for a set period oftime, referred to herein as the recalibration timeout. In an embodiment,the recalibration timeout can be based on the recalibration threshold.For example, the recalibration timeout can be the recalibrationthreshold multiplied by the time for one conversion sequence.

FIGS. 8A-C show exemplary configurations of sensors 255 and theenvironment sense controller 250 of FIG. 2, according to variousembodiments. As discussed above with respect to FIG. 7, the conversionsequencer 720 can configure the switch matrix 340 in a plurality ofrouting configurations at different times. In various embodiments, theconversion sequencer 720 can change the configurations among theconfigurations shown in FIGS. 8A-C, or any other configuration.

FIG. 8A shows the environment sense controller 250 configured to measurethe capacitance at the left sensor 255 a (see also FIGS. 4A-4B). Theleft sensor 255 a includes a sensor 410 a and a shield 420 a. The sensor410 a is connected to the pin CIN3 via the signal line 440 a. The switchmatrix 340 (FIG. 7) is configured to route the pin CIN3 to the positiveterminal of the differential amplifier front-end to the Σ-Δ ADC 360. Thesignal line 440 a is shielded by the shield traces 450 a, which areconnected to the pins CIN2 and CIN4. The switch matrix 340 is configuredto route the pins CIN2 and CIN4 to the BIAS node, which can be connectedto the pin BIAS (FIG. 7). The shield 420 a is connected to the pin CIN1via the second-layer plane trace 460 a. The switch matrix 340 (FIG. 7)is configured to route the pin CIN1 to the BIAS node. The switch matrix340 is configured to connect the internal sensor 780 to the negativeterminal of the differential amplifier front-end to the Σ-Δ ADC 360.

FIG. 8B shows the environment sense controller 250 configured to measurethe capacitance at the right sensor 255 b. The right sensor 255 bincludes a sensor 410 b and a shield 420 b. The sensor 410 b isconnected to the pin CIN7 via the signal line 440 b. The switch matrix340 (FIG. 7) is configured to route the pin CIN7 to the positiveterminal of the differential amplifier front-end to the Σ-Δ ADC 360. Thesignal line 440 b is shielded by the shield traces 450 b, which areconnected to the pins CIN6 and CIN8. The switch matrix 340 is configuredto route the pins CIN6 and CIN8 to the BIAS node, which can be connectedto the pin BIAS (FIG. 7). The shield 420 b is connected to the pin CIN5via the second-layer plane trace 460 b. The switch matrix 340 (FIG. 7)is configured to route the pin CIN5 to the BIAS node. The switch matrix340 (FIG. 7) is configured to connect the internal sensor 780 to thenegative terminal of the differential amplifier front-end to the Σ-Δ ADC360.

FIG. 8C shows the environment sense controller 250 configured to measurethe differential capacitance between the left sensor 255 a and the rightsensor 255 b. The left and right sensors 255 a and 255 b are connectedto the pins CIN1-CIN8, as described above with respect to FIGS. 8A-B. Inthe illustrated embodiment of FIG. 8C, the switch matrix 340 (FIG. 7) isconfigured to route the pin CIN3 to the positive terminal of thedifferential amplifier front-end to the Σ-Δ ADC 360. The switch matrix340 (FIG. 7) is configured to route the pin CIN7 to the negativeterminal of the differential amplifier front-end to the Σ-Δ ADC 360. Theswitch matrix 340 (FIG. 7) is configured to route the pins CIN2, CIN4,CINE, and CIN8 to the BIAS node, which can be connected to the pin BIAS(FIG. 7).

Grip Detection

As described above with respect to FIG. 1, the mobile device 120 can beconfigured to detect whether the mobile device 120 is being held in ahand, whether the hand is a left-hand or right-hand, and/or how the handis gripping the mobile device 120. In an embodiment, the mobile device120 can determine one or more of the foregoing environmentalcharacteristics based on, for example, readings from one or more of thesensors 255 (FIG. 2). Particularly, the processor 215 (FIG. 2) canconfigure the environment sense controller 250 (FIG. 2) to perform oneor more environmental measurements using at least one sensor 255. Theprocessor 215 can determine a spatial relationship between the mobiledevice 120 and material adjacent to the mobile device based on themeasurements. The spatial relationship can include a type of grip, suchas those discussed herein with respect to FIGS. 9A-9F. The processor 215can compare the measurements to one or more reference measurements, forexample, via a lookup table, in order to determine a type of grip. Insome embodiments, the processor 215 can process the measurements (e.g.,observed capacitance(s)) using a classification algorithm such as aNaïve Bayesian classifier to determine the corresponding type of grip.

In various embodiments, the sensors 255 can be configured as shown anddescribed above with respect to FIGS. 5A-6D. Other configurations may beused, including any combination of sensors 255 in various orientations.For example, it may be desirable for the mobile device 120 to include atleast one sensor 255 substantially parallel to and proximate one or morehousing features by which a user may hold the mobile device 120.

In one embodiment, the environment sense controller 250 can performthree different measurements using the left sensor 255 a and the rightsensor 255 b (see FIGS. 5A-6D). In an embodiment, the processor 215 canconfigure the conversion sequencer 720 (FIG. 7) of the environment sensecontroller 250 to perform the three measurements in succession. Invarious embodiments, the measurements can be performed in any order,additional measurements may be included, and some measurements can beomitted.

The first measurement can be a differential capacitance measurementbetween the left sensor 255 a and the right sensor 255 b. In anembodiment, in a first conversion stage, the conversion sequencer 720(FIG. 7) can configure the switch matrix 340 to route the environmentsense controller according to FIG. 8C. As shown in FIG. 8C, the leftsensor 255 a is connected to the positive input of the Σ-Δ ADC 360, andthe right sensor 255 b is connected to the negative input of the Σ-Δ ADC360. In another embodiment, the left and right inputs can be reversed.The Σ-Δ ADC 360 can measure the differential capacitance between theleft sensor 255 a and the right sensor 255 b. In various embodiments,the Σ-Δ ADC 360 can store the result in a memory, or the processor 215(FIG. 2) can retrieve the result from the environment sense controller250, for example, via the serial interface 760 (FIG. 7).

The second measurement can be a single-ended capacitance measurement ofthe left sensor 255 a. In an embodiment, in a second conversion stage,the conversion sequencer 720 (FIG. 7) can configure the switch matrix340 to route the environment sense controller according to FIG. 8A. Asshown in FIG. 8A, the left sensor 255 a is connected to the positiveinput of the Σ-Δ ADC 360, and the internal sensor 780 is connected tothe negative input of the Σ-Δ ADC 360. In various embodiments, theinputs can be reversed, or the internal sensor 780 can be disconnected,and the un-used input can be tied to GND, V_(CC), BIAS, or anotherreference voltage. The Σ-Δ ADC 360 can measure the capacitance at theleft sensor 255 a. In various embodiments, the Σ-Δ ADC 360 can store theresult in a memory, or the processor 215 (FIG. 2) can retrieve theresult from the environment sense controller 250, for example, via theserial interface 760 (FIG. 7).

The third measurement can be a single-ended capacitance measurement ofthe right sensor 255 b. In an embodiment, in a third conversion stage,the conversion sequencer 720 (FIG. 7) can configure the switch matrix340 to route the environment sense controller according to FIG. 8B. Asshown in FIG. 8B, the right sensor 255 b is connected to the positiveinput of the Σ-Δ ADC 360, and the internal sensor 780 is connected tothe negative input of the Σ-ΔADC 360. In various embodiments, the inputscan be reversed, or the internal sensor 780 can be disconnected, and theun-used input can be tied to GND, V_(CC), BIAS, or another referencevoltage. The Σ-Δ ADC 360 can measure the capacitance at the right sensor255 b. In various embodiments, the Σ-Δ ADC 360 can store the result in amemory, or the processor 215 (FIG. 2) can retrieve the result from theenvironment sense controller 250, for example, via the serial interface760 (FIG. 7).

In embodiments where the mobile device 120 includes more than twosensors 255, the environment sense controller 250 can be configured toperform differential capacitance measurements between any combinationsof two sensors 255 and/or single-ended capacitance measurements for anynumber of sensors 255. For example, in the three-sensor 255 embodimentsshown in FIGS. 5C and 6C, the environment sense controller can beconfigured to perform differential capacitance measurements between oneor more of the following pairs: the left sensor 255 a and the top sensor255 c, the right sensor 255 b and the top sensor 255 c, and between theleft sensor 255 a and the right sensor 255 b, in addition tosingle-ended capacitance measurements for any of the sensors 255 a, 255b, and 255 c. In an embodiment, one or more sensors (such as the sensor255 c) can be oriented so as to determine whether a screen of the deviceis facing towards or away from a user's palm.

Referring back to FIG. 2, after the environment sense controller 250performs the three foregoing measurements, the interrupt and GPIO logic770 (FIG. 7) can send an interrupt to the processor 215. The processor215 can then retrieve the results from the environment sense controller250. In an embodiment, the processor 215 can access a two-dimensionallookup table, which can be stored in the memory 220. On a first axis,the processor 215 can look up the magnitude of the differentialcapacitance measurement. On a second axis, the processor 215 can look upthe sum of the two single-ended capacitance measurements. When indexinginto the table, the processor 215 can choose the closest index value.

The intersection of the two indexed look-ups can contain informationindicating a type of grip, which will be described below with respect toFIGS. 9A-9F. Alternatively or additionally, the look-up table caninclude a predicted antenna tuning corresponding to the measurements.Different grip positions can de-tune the antenna via mutual couplingbetween a hand and the antenna. A first set of measurements mayindicate, for example, that a matching filter of the antenna 245 shouldbe adjusted by a particular impedance value. The processor 215 (FIG. 2)can be configured to send a tuning adjustment to the antenna controller240, which can be configured to retune the antenna based on the look-uptable and/or the measurements.

The look-up table can be pre-populated based one or more of a mobiledevice 120 geometry, antenna 240 position, one or more calibrationmeasurements, etc. In an embodiment, the processor 215 can receivetuning information from the antenna controller 240 and/or the radiosubsystem 230, and can populate the look-up table based on the tuninginformation and one or more measurements by the environment sensecontroller 250. For example, the antenna 245 may be de-tuned despite thepredictive re-tuning based on the look-up table. The processor 215 mayadjust the look-up table to correct the disparity between the predictedamount of de-tuning indicated in the look-up table and the actual amountof de-tuning.

In various embodiments, the look-up table can include one or moredimensions. For example, the look-up table can include one dimension permeasurement. The look-up table can include additional dimensionscorresponding to one or more other characteristics of the mobile device120 and/or sensor locations. The memory 220 can include multiple look-uptables. In other embodiments, the look-up table can be replaced with oneor more alternative structures of machine learning including, but notlimited to, decision tree learning, association rule learning,artificial neural networks, genetic programming, inductive logicprogramming, support vector machines, clustering, Bayesian networks,reinforcement learning, representation learning, and sparse dictionarylearning.

FIGS. 9A-9F are schematic diagrams showing exemplary grips of the mobiledevice 120 of FIG. 5A, according to various embodiments, although thegrip detection can be performed with any of a variety of sensorplacements. Each grip can be associated with one or more antenna 245tunings, game actions, transmission power settings, etc. Although FIGS.9A-9F show left-handed grips, equivalent right-handed grips are mirrorimages. The grips shown in FIGS. 9A-9F are not intended to beexhaustive, and a person having ordinary skill in the art willappreciate that other grip configurations can be used in the context ofthis disclosure.

FIG. 9A shows a first exemplary grip, referred to herein as a “palmgrip,” wherein a user grips the mobile device 120 between part of a palm710 on the left side 521, and four digits 920 on the right side 522.When a user holds the mobile device in a palm grip, the environmentsense controller 250 will likely record a differential capacitancemeasurement showing a value above or below the ambient capacitance valueby a small amount. The environment sense controller 250 will likelyrecord a left-side 521 single-ended capacitance measurement, from theleft sensor 255 a, showing a relatively large value. The environmentsense controller 250 will likely record a right-side 522 single-endedcapacitance measurement, from the right sensor 255 b, showing arelatively large value. In the left-handed grip shown in FIG. 9A, theleft-side 521 single-ended capacitance measurement will likely be largerthan the right-side 522 single-ended capacitance measurement. In aright-handed grip (now shown), the left-side 521 single-endedcapacitance measurement will likely be smaller than the right-side 522single-ended capacitance measurement.

FIG. 9B shows a second exemplary grip, referred to herein as a “sidepinch,” wherein a user grips the mobile device 120 between a thumb 930on the left side 521, and one digit 920 on the right side 522. When auser holds the mobile device in a side pinch, the environment sensecontroller 250 will likely record a differential capacitance measurementshowing a value approximately the same as the ambient capacitance value.The environment sense controller 250 will likely record a left-side 521single-ended capacitance measurement, from the left sensor 255 a,showing a moderate to small value. The environment sense controller 250will likely record a right-side 522 single-ended capacitancemeasurement, from the right sensor 255 b, showing a moderate to smallvalue. In the left-handed grip shown in FIG. 9B, the left-side 521single-ended capacitance measurement will likely be larger than theright-side 522 single-ended capacitance measurement. In a right-handedgrip (not shown), the left-side 521 single-ended capacitance measurementwill likely be smaller than the right-side 522 single-ended capacitancemeasurement.

FIG. 9C shows a third exemplary grip, referred to herein as a “doublepinch,” wherein a user grips the mobile device 120 between a thumb 930on the left side 521, and two digits 920 on the right side 522. When auser holds the mobile device in a double pinch, the environment sensecontroller 250 will likely record a differential capacitance measurementconsistently favoring one side. In the left-handed grip shown in FIG.9C, the differential capacitance measurement will likely favor the rightsensor 255 b due to the typical size of the two digits 920 compared tothe typical size of the thumb 930. In a right-handed grip (not shown),the differential capacitance measurement will likely favor the leftsensor 255 a.

In the left-handed grip shown in FIG. 9C, the environment sensecontroller 250 will likely record a right-side 522 single-endedcapacitance measurement, from the right sensor 255 b, showing a moderatevalue. The environment sense controller 250 will likely record aleft-side 521 single-ended capacitance measurement, from the left sensor255 a, showing a value that is slightly greater than half of the valuemeasured from the right sensor 255 b. In a right-handed grip (notshown), the single-ended capacitance measurements, from the left andright sensors 255 a and 255 b, will likely be reversed.

FIG. 9D shows a fourth exemplary grip, referred to herein as a “treblepinch,” wherein a user grips the mobile device 120 between a thumb 930on the left side 521, and three digits 920 on the right side 522. When auser holds the mobile device in a treble pinch, the environment sensecontroller 250 will likely record a differential capacitance measurementconsistently favoring one side, with a higher magnitude than would bemeasured when the user holds the mobile device 120 in the double pinch,discussed above with respect to FIG. 9C. In the left-handed grip shownin FIG. 9C, the differential capacitance measurement will likely favorthe right sensor 255 b due to the typical size of the three digits 920compared to the typical size of the thumb 930. In a right-handed grip(not shown), the differential capacitance measurement will likely favorthe left sensor 255 a.

In the left-handed grip shown in FIG. 9D, the environment sensecontroller 250 will likely record a right-side 522 single-endedcapacitance measurement, from the right sensor 255 b, showing a moderatevalue. The environment sense controller 250 will likely record aleft-side 521 single-ended capacitance measurement, from the left sensor255 a, showing a value that is slightly greater than one-third of thevalue measured from the right sensor 255 b. In a right-handed grip (notshown), the single-ended capacitance measurements, from the left andright sensors 255 a and 255 b, will likely be reversed.

FIG. 9E shows a fifth exemplary grip, referred to herein as a “concavepalm,” wherein a user grips the mobile device 120 between a thumb 930 onthe left side 521, and four digits 920 on the right side 522. When auser holds the mobile device in a concave palm, the environment sensecontroller 250 will likely record a large differential capacitancemeasurement showing a value consistently favoring one side, with ahigher magnitude than would be measured when the user holds the mobiledevice 120 in the treble pinch, discussed above with respect to FIG. 9D.In the left handed grip shown in FIG. 9E, differential capacitancemeasurement will likely favor the right sensor 255 b due to the typicalsize of the four digits 920 compared to the typical size of the thumb930. For example, the environment sense controller 250 may record aleft-side 521 single-ended capacitance measurement, from the left sensor255 a, showing a value that is slightly greater than one-fourth of thevalue measured from the right sensor 255 b. In a right-handed grip(not-shown), the differential capacitance measurement will likely favorthe left sensor 255 a.

In the left-handed grip shown in FIG. 9E, the environment sensecontroller 250 will likely record a right-side 522 single-endedcapacitance measurement, from the right sensor 255 b, showing arelatively large value. The environment sense controller 250 will likelyrecord a left-side 521 single-ended capacitance measurement, from theleft sensor 255 a, showing a moderate value. The single-endedcapacitance measurements will be unbalanced, favoring either the left orright side. In a right-handed grip (not shown), the single-endedcapacitance measurements, from the left and right sensors 255 a and 255b, will likely be reversed.

FIG. 9F shows a sixth exemplary grip, referred to herein as a“widescreen grip,” wherein a user grips the mobile device 120 between athumb 930 on the left side 521, and another thumb 940 on the right side522. The thumbs 930 and 940 may overlap with the front of the mobiledevice 120, with an opposing digit 920 on the back side of the mobiledevice 120. When a user holds the mobile device in a widescreen grip,the environment sense controller 250 will likely record a differentialcapacitance measurement near the ambient capacitance value andrelatively unstable. The environment sense controller 250 will likelyrecord a right-side 522 single-ended capacitance measurement, from theright sensor 255 b, showing a relatively small value. The environmentsense controller 250 will likely record a left-side 521 single-endedcapacitance measurement, from the left sensor 255 a, showing arelatively small value. It will be understood that the numbers and sizesof digits, thumbs, and/or palms detected on either end may indicate awide screen grip.

FIGS. 10A-10E are perspective views of the exemplary grips of FIGS.9A-9E. FIGS. 10A-10E show the placements of the palm 910, digits 920,and thumb 930 on the mobile device 120, in various configurations. Itwill be understood that the locations of placements of the palm 910,digits 920, and thumb 930 are exemplary, and may vary within the scopeof each grip description.

FIG. 11 is a chart 1100 showing relative differential and single-endedmagnitude responses expected for each of the grips shown in FIGS. 9A-9F.The x-axis shows differential response, and the y-axis showssingle-ended magnitude response. The shaded area 1110 corresponds to therange of likely differential and single-ended magnitude responsescorresponding to the palm grip, described above with respect to FIGS. 9Aand 10A.

Referring still to FIG. 11, the shaded area 1120 corresponds to therange of likely differential and single-ended magnitude responsescorresponding to the side pinch, described above with respect to FIGS.9B and 10B. The shaded area 1130 corresponds to the range of likelydifferential and single-ended magnitude responses corresponding to thedouble pinch, described above with respect to FIGS. 9C and 10C. Theshaded area 1140 corresponds to the range of likely differential andsingle-ended magnitude responses corresponding to the treble pinch,described above with respect to FIGS. 9D and 10D.

Referring still to FIG. 11, the shaded area 1150 corresponds to therange of likely differential and single-ended magnitude responsescorresponding to the concave palm, described above with respect to FIGS.9E and 10E. The shaded area 1160 corresponds to the range of likelydifferential and single-ended magnitude responses corresponding to thewidescreen grip, described above with respect to FIG. 9F. The shadedarea 1170 corresponds to the range of likely differential andsingle-ended magnitude responses corresponding to an idle state, whereinthe mobile device 120 (FIG. 2) may be resting on a flat surface.

Static Dielectric Detection

As described above with respect to FIG. 1, the mobile device 120 can beconfigured to detect one or more nearby objects 160 a-160 d, 170, and180, and/or surfaces thereof. In an embodiment, the mobile device 120can determine one or more characteristics based on the detection. Forexample, the mobile device 120 can determine one or more of type of amaterial, solidity, and being alive of a nearby object.

Referring back to FIG. 2, the mobile device 120 can detect a nearbysurface based, for example, on readings from one or more of the sensors255. Particularly, the processor 215 can configure the environment sensecontroller 250 to perform one or more environmental measurements usingat least one sensor 255. The processor 215 can compare the measurementsto one or more reference measurements, for example, via a lookup tableand/or a classification algorithm, in order to determine a type ofmaterial.

In various embodiments, the sensors 255 (FIGS. 2-4) can be configured asshown and described above with respect to FIGS. 5A-6D. Otherconfigurations may be used, including any combination of sensors 255 invarious orientations. For example, it may be desirable for the mobiledevice 120 to include at least one sensor 255 substantially parallel toand proximate one or more housing faces upon which a user may set themobile device 120. Although a particular embodiment is described hereinwith reference to the left sensor 255 a (see FIGS. 5A-6D), othercombinations of sensors 255 can be used. In an embodiment, the mobiledevice 120 can concurrently determine the dielectric constants (or anyother characteristics, such as a conductivity classification) for aplurality of surfaces.

In an embodiment, the environment sense controller 250 (FIG. 7) canperform one or more capacitive measurements using the left sensor 255 a.Particularly, the processor 215 (FIG. 2) can configure the conversionsequencer 720 (FIG. 7) to take continuous, periodic, or intermittentmeasurements using the Σ-Δ ADC 360. In embodiments using more than onesensor 255, the processor 215 can configure the conversion sequencer 720to iterate through all the sensors 255 over time, for example, accordingto a round-robin sequence. In an embodiment, the processor 215 candetermine an orientation of the mobile device 120 (for example, based onreadings from the accelerometer 227), and can choose a subset of sensors255 that are likely to be facing the surface to be measured. Theprocessor 215 can choose the subset of sensors 255 based on informationindicative of sensor 255 locations, which can be stored in the memory220.

The conversion sequencer 720 (FIG. 7) can iterate through differentsensor readings using, for example, the switch matrix 340, as describedabove with respect to FIG. 7. The processor 215 can read the measurementresults from the environment sense controller 250 periodically orintermittently. For example, the processor 215 can read the measurementresults after all conversion stages have completed. In an embodiment,the processor 215 can read the measurement results after eachmeasurement, and can make periodic or intermittent measurement requests.

The processor 215 can store one or more measurement results in thememory 220. In an embodiment, the processor 215 can include one or moretimestamps associated with the measurement results. The processor 215can be configured to calculate one or more metrics on the measurementresults such as, for example, an average, a weighted average, a movingaverage, a standard deviation, rate of change, direction of change, etc.The processor 215 can calculate the one or more metrics based on the Xmost recent measurement results, where X can be a preset or dynamicallydetermined number. The processor 215 can calculate multiple sets of themetrics, based one or more subsets of recorded measurement results.

The processor 215 can determine a stability of the measurement resultsover time, based on one or more of the calculated metrics. In anembodiment, the processor 215 can compare a stability metric to astability threshold. The stability threshold can be a preset ordynamically determined threshold indicating that the mobile device 120is likely stationary with respect to a nearby surface. The stabilitythreshold can be determined with respect to one or more calibrationmeasurements and/or metrics.

If the stability metric is greater than the stability threshold, theprocessor 215 can determine that the mobile device 120 is likelystationary with respect to a nearby surface, and can proceed todetermine the static dielectric constant of the surface. On the otherhand, if the stability metric is not greater than the stabilitythreshold, the processor 215 can determine that the mobile device 120 isnot likely stationary with respect to a nearby surface, and may delaydetermining the static dielectric constant of the surface. In anembodiment, the processor 215 can use an accelerometer metric, asdescribed below with respect to the section titled “Dynamic DielectricDetection,” in addition or as an alternative to the stability metric.

For example, the processor 215 can compare the standard deviation of themost recent 64 to 1024 measurements to the stability threshold. Asanother example, the processor 215 can compare the average of the mostrecent small number (e.g., 10) measurements to a stability thresholdequal to the average of the most recent larger number (e.g., 1000) ofmeasurements. As another example, the processor 215 can compare theslope of trend line of the most recent 100 measurements to a stabilitythreshold indicating a threshold slope.

After determining the stability of the measurement results, theprocessor 215 can determine the dielectric constant of the nearbysurface. In some embodiments, the processor 215 can determine thedielectric constant of the nearby surface only after the stabilitymetric exceeds the stability threshold. In other embodiments, theprocessor 215 may not determine the stability metric, or may measure thedielectric constant of the nearby surface regardless of the determinedstability.

The processor 215 can determine the presence of a conductor on a nearbysurface (or a conductive surface) based on the one or more computedmetrics. In general, the capacitance (C), the permittivity of free space(∈₀), the dielectric constant or relative permittivity (∈_(r)) of thesurface, the area (A) of capacitive sensor, and the distance (d) betweenthe sensor 255 and the surface, are related according to the parallelplate capacitor shown in Equation 1:

$\begin{matrix}{C = \frac{ɛ_{0} \cdot ɛ_{r} \cdot A}{d}} & (1)\end{matrix}$

Accordingly, the processor 215 can determine the dielectric constant ofthe surface when a conductor is present according to the rearrangedEquation 2:

$\begin{matrix}{ɛ_{r} = \frac{C \cdot d}{ɛ_{0} \cdot A}} & (2)\end{matrix}$

In an embodiment, ∈₀, A, and d can be known calibration data. Theprocessor 215 can retrieve the calibration data from the memory 220.Calibration data can include information indicating, for example, thelocation of each sensor 255 within a housing of the mobile device 120,the likely distance of each sensor 255 (through the housing) to a nearbysurface in various device orientations, the area of each sensor 255,etc. For example, the likely distance of each sensor 255 can becalibrated based on an assumption that the housing of the mobile device120 rests directly on the surface to be measured. In an embodiment, A,d, and ∈₀ can be included as a pre-calculated scale factor (k). Thus, inan embodiment, the processor 215 can determine the dielectric constantof the surface according to Equations 3 and 4:

$\begin{matrix}{k = \frac{d}{ɛ_{0} \cdot A}} & (3) \\{ɛ_{r} = {C \cdot k}} & (4)\end{matrix}$

In some embodiments, the processor 215 can determine that the surface isconductive based on the determined dielectric constant, or based on ameasurement indicative of the dielectric constant. For example, theprocessor 214 can determine that the surface is conductive when thedetermined dielectric constant is within a threshold range with respectto a baseline measurement. The baseline measurement can be, for example,a calibrated measurement, the dielectric constant of a housing of themobile device 120, etc. In an embodiment, the processor 215 can classifythe surface as conductive when the determined dielectric constant iswithin the threshold range, and can classify the surface asnon-conductive when the determined dielectric constant is not within thethreshold range.

Similarly, the processor 215 can determine the presence of a nearbynon-conductive surface based on the one or more computed metrics. In anembodiment, a dielectric resting beneath the surface of the mobiledevice 120 can be formed of molecules, which are polarized by anelectric field. The Σ-Δ ADC 360 can apply a voltage to a capacitivesensor 255, which will push charge onto the electrode of the sensor 255in proportion to the external dielectric's ability to become polarized.The magnitude of the external bound charge displaced will beproportional to the charge accumulated on the electrode of the sensor255. A constant drive voltage can be applied to the electrode of thesensor 255 during a polarization-charge accumulation event. The mobiledevice 120 can determine charge densities in external materials bymeasuring the uniform sheet of surface charge developed on the electrodeof the sensor 255 by integrating the charge into an internal measurementcapacitor in the Σ-Δ ADC 360. Thus, in an embodiment, the processor 215can determine the dielectric constant of the surface according toEquations 5 and 6:

$\begin{matrix}{C = {\frac{Q}{V} = \frac{\oint_{s}{ɛ_{0} \cdot ɛ_{r} \cdot E \cdot {\mathbb{d}S}}}{- {\int_{-}^{+}{E \cdot \ {\mathbb{d}L}}}}}} & (5) \\{E = \frac{\rho_{s}}{ɛ_{0} \cdot ɛ_{r}}} & (6)\end{matrix}$

E is the uniform field developed on the electrode of the sensor 255 andρ_(s) is the surface charge on the electrode, given in terms of chargeper area, which can be dependent on the geometry of the sensor.Therefore, the processor 215 can determine ∈_(r) for the surface basedon a known potential difference of V applied by the Σ-Δ ADC 360, ameasured value of Q by the Σ-Δ ADC 360, and a value of C calculated bythe Σ-Δ ADC 360.

In an embodiment, the mobile device 120 can include a referencecapacitor (not shown) to facilitate calibration. The environment sensecontroller 250 can measure the capacitance of the reference capacitorand store the result in the memory 220, for example with the calibrationdata. In various embodiments, the reference capacitor can include aportion of a housing or a protective case of the mobile device 120.

The calibration data can further include information indicating aneffect of the housing or protective case on sensor readings. Theprocessor 215 can subtract the effect of the housing or protective casewhen determining the dielectric constant of the surface. In someembodiments, the mobile device 120 can intermittently, periodically, orcontinuously recalibrate sensor readings with respect to the referencecapacitor. For example, the mobile device 120 can detect a change in theprotective case and compensate for the change.

In an embodiment, the processor 215 can access a single ormulti-dimensional lookup table, which can be stored in the memory 220.The dimensions of the lookup table can correspond to one or morecalculated metrics and/or sensor locations. The values in the look-uptable can indicate one or more predicted characteristics of the measuredsurface. The characteristics can include, for example, a dielectricconstant, type of material, solidity, being alive, location, distance,and orientation. Material types can include general categories such aswood, plastic, metal, liquid, etc., and/or specific materials such asoak, aluminum, polyvinyl chloride (PVC), water, etc.

The processor 215 can access the lookup table based on the one or morecalculated metrics. For example, in a single-dimensional embodiment, theprocessor 215 can determine an average value of measured capacitance forthe left sensor 255 a (FIG. 6A). The processor 215 can look up thedetermined average in the table to determine an expected dielectricconstant of the surface.

In an example including both the left sensor 255 a (FIG. 6A) and theright sensor 255 b (FIG. 6A), the processor 215 can determine an averagevalue of measured capacitance for each sensor 255 a and 255 b. Theprocessor 215 can look up the determined average for the left sensor 255a on a first dimension of the table, and can look up the determinedaverage for the right sensor 255 b on a second dimension of the table.The intersection of the two look-ups can indicate an expected dielectricconstant of the surface. Based on the result of the look-up, theprocessor 215 can take one or more actions, such as changing acharacteristic of the mobile device 120, as described below in thesection titled “Exemplary Applications.”

In another example, the processor 215 can determine an average value ofmeasured capacitance for the left sensor 255 a (FIG. 6A), and a standarddeviation of the measured capacitance for the left sensor 255 a. Theprocessor 215 can look up the determined average for the left sensor 255a on a first dimension of the table, and can look up the determinedstandard deviation for the left sensor 255 a on a second dimension ofthe table. The intersection of the two look-ups can indicate an expectedmaterial the surface. For example, the lookup table can indicate thatthe surface is likely wood. In one embodiment, the processor 215 canskip determination of the dielectric constant, and can directly relate ameasured value (such as a voltage or current indicative of capacitance)to a type of material, or characteristic thereof. In other embodiments,additional metrics can be used, as discussed herein. Based on thedetermined material type or characteristic, the processor 215 can takeone or more actions, such as changing a characteristic of the mobiledevice 120, as described below in the section titled “ExemplaryApplications.”

The look-up table can be pre-populated based one or more of a mobiledevice 120 geometry, antenna 240 position, one or more calibrationmeasurements, etc. In an embodiment, the processor 215 can receivecalibration information from the user interface 225, and can populatethe look-up table based on the calibration information and one or moremeasurements by the environment sense controller 250. For example, withreference to FIGS. 1-2, the user 160 c may place the mobile device 120 con the table 170. The user interface 225 can prompt the user to enterinformation about the surface. For example, the user 160 c may indicatethat the table 170 is a wooden coffee table in the living room, and canindicate the dielectric constant of the table 170 (for example, during amanufacturer calibration sequence). The processor 215 can adjust thelook-up table based on the measurements taken, such the processor 120can identify the table 170 as the wooden coffee table in the living roomwhen the environment sense controller 250 records similar measurementsin the future. In some embodiments, the processor 120 can identify thetable 170 more generally such as, for example, wood.

In various embodiments, the look-up table can include one or moredimensions. For example, the look-up table can include one dimension permeasurement. The look-up table can include additional dimensionscorresponding to one or more other characteristics of the mobile device120 and/or sensor locations. The memory 220 can include multiple look-uptables. In other embodiments, the look-up table can be replaced with oneor more alternative structures of machine learning including, but notlimited to, decision tree learning, association rule learning,artificial neural networks, genetic programming, inductive logicprogramming, support vector machines, clustering, Bayesian networks,reinforcement learning, representation learning, and sparse dictionarylearning.

As discussed above, the mobile device 120 can be configured to subtractthe effect of the housing or protective case when determining thedielectric constant of the surface. In the mobile device 120, which caninclude a cell phone or a tablet, the sensors 255 can be located withinthe housing, protective case, or device package. The housing material,and any material near the mobile device 120, can affect capacitivemeasurement. The housing can have a constant relative relationship inspace with the sensors 255. Accordingly, a static housing can have aconstant contribution to the capacitive measurement of the environmentaround the sensors 255.

In an embodiment, the housing capacitance can be accounted for viacalibration data. The mobile device 120 can discover the parameters ofthe housing capacitance by taking capacitive measurements whilesuspended in air with no other objects nearby. In an embodiment, theenvironment sense controller 250 can be configured to cancel out thecapacitive contribution of the housing, for example, prior to convertingan analog sensor 255 measurement into a digital value. As discussedabove with respect to FIG. 7, the environment sense controller 250 caninclude a pair of current DACs (not shown), which can be programmed toadd or subtract an offset charge from the measurement. Accordingly, ifthe magnitude of the housing capacitance can be determined, then it canbe removed from the measurement via the internal current DACs, allowingthe Σ-Δ ADC 360 to digitize a larger environmental capacitance withoutclipping. In an embodiment, the magnitude of the housing capacitance canbe used as a baseline in order to determine if a nearby object isconductive.

In an embodiment, the mobile device 120 can be housed in a material(such as plastic) having a dielectric constant that can vary due tochanges in, for example, temperature and humidity. In an embodiment, themobile device 120 can include one or more sensors configured to detectchanges in temperature and/or humidity, and can perform a housingcalibration upon detection of the changes. In some embodiments, however,the mobile device 120 may not include temperature and/or humiditysensors, or may not be configured to perform housing calibration upondetection of the changes.

In an embodiment, the mobile device 120 can be configured to cancel outthe housing capacitance using differential measurements. The mobiledevice 120 can include a sensor 255 referred to as a “bias sensor.” Thebias sensor can include the same material used in the housing, and canbe exposed to the same environment as the housing with respect totemperature and/or humidity. Unlike the housing, however, the biassensor can be electrostatically shielded. Accordingly, the bias sensorcan track changes in the housing dielectric changes, allowing thecancelation of the housing capacitance contribution in the differentialcapacitive measurement. The bias sensor can be connected to the negativeterminal of the Σ-Δ ADC 360 (FIG. 7) in the environment sense controller250 (FIG. 7), for example, by the switch matrix 240 (FIG. 7).

In an embodiment, the processor 215 can configure the sensor 255 that isconfigured as the bias sensor in a differential measurementconfiguration with another sensor 255, to discover sensor 255 connectionbreakage and/or or manufacturing defects. For example, the bias sensorcan be connected to the negative terminal of the Σ-Δ ADC 360 (FIG. 7) inthe environment sense controller 250 (FIG. 7), such as by the switchmatrix 240 (FIG. 7). At the same time, a sensor 255 under test can beconnected to the positive terminal of the Σ-Δ ADC 360. The processor 215can read the differential measurement from the environment sensecontroller 250 and can compare the measurement to an expecteddifferential imbalance. The expected differential imbalance can beincluded with calibration in formation in the switch matrix 340 or canbe dynamically determined. If the differential measurement is outside athreshold range, the processor 215 can determine that the sensor 255under test is defective.

The sensor 255 that serves as the bias sensor itself can be tested usinga single ended measurement, as described above, because its capacitancevalue is likely to take on a smaller range of values than other sensors255 exposed to external stimuli. The processor 215 can compare themeasured capacitance of the bias sensor to a threshold range based onthe maximum and minimum dielectric values of the bias sensor material,under expected temperature and humidity conditions.

FIG. 12 is a flowchart 1200 of an exemplary method of environmentdetection, according to an embodiment. The method of the flowchart 1200uses static dielectric detection, as described herein. Although themethod of the flowchart 1200 is described herein with reference to themobile device 120, discussed above with respect to FIGS. 2 and 5A-6D, aperson having ordinary skill in the art will appreciate that the methodof the flowchart 1200 may be implemented by other suitable devices. Inan embodiment, the steps in the flowchart 1200 may be performed by aprocessor or controller such as, for example, the processor 215 (FIG.2), and/or the environment sense controller 250 (FIG. 2), in conjunctionwith one or more of the memory 220 (FIG. 2) and the sensors 255 (FIG.2). Although the method of the flowchart 1200 is described herein withreference to a particular order, in various embodiments, blocks hereinmay be performed in a different order, or omitted, and additional blocksmay be added.

First, at block 1202, the processor 215 configures the Σ-Δ ADC 360 (FIG.7) in the environment sense controller 250. The Σ-Δ ADC 360 can also bereferred to as a capacitance-to-digital converter (CDC), as indicated inthe flow chart. For example, the processor 215 can set a decimationrate, offsets, and stage configurations. The processor 215 can configurethe Σ-Δ ADC 360 to take one or more readings from the sensors 255.

Next, at block 1204, the processor 215 resets any flags, counters,and/or arrays related to environment detection. For example, theprocessor 215 can clear one or more of a sample array, a stabilitycounter, a stability flag, a SAR notification flag, an ∈_(r) array, etc.The flags, counters, and/or arrays can be stored in one of the memory220, the calibration memory (FIG. 7), the control and data registers 710(FIG. 7), etc.

Then, at block 1206, the Σ-Δ ADC 360 reads a capacitance value from asensor 255. At block 1208, the processor 215 shifts the measuredcapacitance value into the sample array. The sample array can store afirst number of recent capacitance measurements. The sample array can bestored, for example, in the memory 220.

Thereafter, at block 1210, the processor 215 calculates the average ofat least some values in the sample array. In an embodiment, theprocessor 215 calculates the average across all values in the samplearray. In an embodiment, the processor 215 can store the result of eachaverage calculation in an array of average calculations.

Subsequently, at block 1212, the processor 215 calculates the standarddeviation of the values in the sample array. Alternatively, theprocessor 215 can calculate other indicators of variability in thesamples. For example, the processor 215 can perform time domainmagnitude and/or frequency domain analysis on the values in the samplearray. The processor 215 can store the result of each standard deviationcalculation in an array of standard deviations.

Next, at block 1214, the processor 215 calculates a weighted average ofthe standard deviation results in the array of standard deviations. Thestandard deviation results can be weighted by, for example, the arrayorder, a time at which each result was calculated, etc. In anembodiment, the processor 215 can also calculate a change in the valueof measured capacitance since the last measurement.

Then, at block 1216, the processor 215 determines if the change in valueis less than or equal to the weighted average of standard deviationscalculated at block 1214. If the value change is greater than to theweighted average of standard deviations, the processor 215 continues toread additional capacitance values block 1206. On the other hand, if thevalue change is less than or equal to the weighted average of standarddeviations, the processor 215 proceeds to block 1218.

At block 1218, the processor 215 increments the stability counter. Thestability counter can indicate a stability of the mobile device 120 withrespect to a measurement surface. For example, the stability counter canindicate a variability of the capacitance measurements. The stabilitycounter can be stored, for example, in the memory 220.

Thereafter, at block 1220, the processor 215 determines if the stabilitycounter is greater than a stability threshold. The stability thresholdcan be stored and retrieved, for example, from the memory 220. Thestability threshold can be based on calibration data or other adaptivethreshold sources. The stability threshold can be indicative of astability of the mobile device 120 sufficient to cause subsequentmaterial determination to have an accuracy above an accuracy threshold.If the stability counter is less than or equal to the stabilitythreshold, the processor 215 can continue to read additional capacitancevalues block 1206. On the other hand, if the stability counter isgreater than the stability threshold, the processor 215 proceeds toblock 1222.

At block 1222, the processor 215 clears the stability counter. Theprocessor 215 can also set the stability flag. The stability flag canindicate that the mobile device 120 has a stability sufficient to begindetermination of the dielectric constant of a nearby material.

At block 1224, the processor 215 determines if the last measuredcapacitance value is outside three standard deviations from the sampleaverage determined in block 1210. In various embodiments, other metricscan be used to determine whether the last measured capacitance value isan outlier. For example, one standard deviation or two standarddeviations can be used, or another measure of variability. If the lastmeasured capacitance value is outside three standard deviations from thesample average, the processor 215 continues to read additionalcapacitance values block 1206. On the other hand, if the last measuredcapacitance value is within three standard deviations from the sampleaverage, the processor 215 proceeds to block 1226.

At block 1226, the processor 215 calculates the dielectric constant(∈_(r)) of the material as described above with respect to equations1-4. At block 1228, the processor 215 gathers location data such as, forexample, GPS measurements, location services based on visible WiFinetworks, etc. In an embodiment, the user can provide location data viathe user interface 225.

Thereafter, at block 1230, the processor 215 searches a library ofdielectric constants for matches. The library of dielectric constantscan indicate a material type based on the calculated dielectricconstant. In various embodiments, other libraries can be used, asdescribed below in the section titled “Lookup Tables.” For example, theprocessor 215 can skip block 1226, and can directly access a librarythat provides a material type based on a measured value indicative ofcapacitance.

Next, at block 1232, the processor 215 searches a metadata library formatches. The library of dielectric constants can indicate a materialtype based on the calculated dielectric constant and/or otherinformation such as the location data. In various embodiments, theprocessor 215 can search the metadata library in addition to, or insteadof the dielectric constant library. In various embodiments, otherlibraries can be used, as described below in the section titled “LookupTables.” For example, the processor 215 can skip block 1226, and candirectly access a library that provides a material type based on ameasured capacitance value and/or the other metadata such as thelocation data determined at block 1228.

With continued reference to block 1232, if there is no match in themetadata library, the processor 215 continues to block 1234 where itcreates a new entry in one or more libraries. For example, the processor215 can store the measured capacitance, calculated dielectric constant,determined location data, and/or any other related informationcorresponding to the measured surface (such as a conductivityclassification of the measured surface).

With continued reference to block 1232, if there are multiple matches inthe metadata library, the processor 215 continues to block 1236, wherethe Σ-Δ ADC 360 reads an additional capacitance value from the sensor255, at which the processor 215 shifts the capacitance into the samplearray. The capacitance can be the already calculated sample arrayaverage from block 1210, or can be based on an additional measurement,as shown, to allow further discrimination between metadata entries. Inan embodiment, block 1236 can include one or more actions from blocks1206-1214.

With continued reference to block 1232, if there is a single match inthe metadata library, the processor 215 proceeds to block 1238, wherebythe matched material is established. Then, at block 1240, the processor215 adds the location data, determined at block 1228, to the metadatalibrary. The processor 215 can also add other metadata to correspondwith the determined material.

Thereafter, at block 1242, the processor 215 determines if the materialestablished at 1238 could be human. For example, the searched librariesmay include materials such as skin and other potentially human features.If the material is determined to be possibly human (e.g., the“established” material is within a range of dielectric constants thatencompasses human features), the processor 1244 sets the SARnotification flag at block 1244. On the other hand, if the materialestablished at block 1238 is determined not to be human, the processor1244 clears the SAR notification flag at block 1246. The processor 215,radio subsystem 230, and/or the antenna controller 240 can, for example,adjust a transmitter power based on the SAR notification flag.

Subsequently, at block 1248, the processor 215 reads a new capacitancevalue, shifts the value into the sample array, and calculates thedielectric constant (∈_(r)). The processor 215 can, for example, performthe actions of one or more of blocks 1206, 1208, and 1226. In anembodiment, the processor 215 can perform additional actions such as,for example, all of blocks 1206-1226.

Next, at block 1250, the processor 215 shifts the dielectric constant(∈_(r)) into a dielectric constant array, and calculates a standarddeviation of the values in the array. In other embodiments, theprocessor can calculate another indication of variability.

Then, at block 1252, the processor determines whether the lastcalculated dielectric constant is outside three standard deviations froman average of calculated dielectric constants. In various embodiments,other metrics can be used to determine whether the last measuredcapacitance value is an outlier. For example, one standard deviation ortwo standard deviations can be used, or another measure of variability.If the last calculated dielectric value is outside three standarddeviations from the average, the processor 215 begins a new materialdetermination sequence at block 1204. On the other hand, if the lastcalculated dielectric value is within three standard deviations from theaverage, the processor 215 continues to monitor material and/or locationchanges at block 1248.

Dynamic Dielectric Detection

As described above with respect to FIG. 1, the mobile device 120 can beconfigured to detect a dielectric of one or more nearby objects 160a-160 d, 170, and 180, and/or surfaces thereof, while in motion relativeto the one or more nearby objects 160 a-160 d, 170, and 180. Forexample, the mobile device 120 b can be configured to detect adielectric constant of the user's 160 b head as the user 160 b bringsthe mobile device 120 b to his ear. As another example, the mobiledevice 120 c can be configured to detect a dielectric constant of thetable 170 as the user 160 a moves the mobile device 120 c away from thetable. In an embodiment, the mobile device 120 can determine one or morecharacteristics based on the detected dielectric. For example, themobile device 120 can determine one or more of type of a material,solidity, and aliveness of a nearby object.

Referring back to FIG. 2, the mobile device 120 can detect a dielectricof a nearby surface in relative motion based on, for example readingsfrom one or more of the sensors 255. Particularly, the processor 215 canconfigure the environment sense controller 250 to perform one or moreenvironmental measurements using at least one sensor 255. The processor215 can compare the measurements to one or more reference measurements,for example, via a lookup table, in order to determine a type ofmaterial.

In various embodiments, the sensors 255 (FIGS. 2-4) can be configured asshown and described above with respect to FIGS. 5A-6D. Otherconfigurations may be used, including any combination of sensors 255 invarious orientations. For example, it may be desirable for the mobiledevice 120 to include at least one sensor 255 substantially parallel toand proximate one or more housing faces upon which a user may set themobile device 120. Although a particular embodiment is described hereinwith reference to the left sensor 255 a (see FIGS. 5A-6D), othercombinations of sensors 255 can be used. In an embodiment, the mobiledevice 120 can concurrently determine the dielectric constants (or anyother characteristics) for a plurality of surfaces. Othercharacteristics can include, for example, a conductivity classificationof the surfaces.

In an embodiment, the environment sense controller 250 (FIG. 7) canperform one or more capacitive measurements using the left sensor 255 a.Particularly, the processor 215 (FIG. 2) can configure the conversionsequencer 720 (FIG. 7) to take continuous, periodic, or intermittentmeasurements using the Σ-Δ ADC 360. In embodiments using more than onesensor 255, the processor 215 can configure the conversion sequencer 720to iterate through all the sensors 255 over time, for example, accordingto a round-robin sequence. In an embodiment, the processor 215 candetermine an orientation of the mobile device 120 (for example, based onreadings from the accelerometer 227), and can choose a subset of sensors255 that are likely to be facing the surface to be measured. Theprocessor 215 can choose the subset of sensors 255 based on informationindicative of sensor 255 locations, which can be stored in the memory220.

The conversion sequencer 720 can iterate through different sensorreadings using, for example, the switch matrix 340, as described abovewith respect to FIG. 7. The processor 215 can read the measurementresults from the environment sense controller 250 periodically orintermittently. For example, the processor 215 can read the measurementresults after all conversion stages have completed. In an embodiment,the processor 215 can read the measurement results after eachmeasurement, and can make periodic or intermittent measurement requests.

The processor 215 can store one or more measurement results in thememory 220. In an embodiment, the processor 215 can include one or moretimestamps associated with the measurement results. The processor 215can be configured to calculate one or more metrics on the measurementresults such as, for example, an average, a weighted average, a movingaverage, a standard deviation, rate of change, direction of change, etc.The processor 215 can calculate the one or more metrics based on the Xmost recent measurement results, where X can be a preset or dynamicallydetermined number. The processor 215 can calculate multiple sets of themetrics, based one or more subsets of recorded measurement results.

The processor 215 can determine that the mobile device 120 is in motionusing the accelerometer 227. For example, the mobile device 120 canstore one or more accelerometer 227 readings in the memory 220, and cancompare the accelerometer 227 readings to a motion threshold. Theprocessor 215 can use one or more accelerometer 227 metrics in a mannersimilar to that described above with respect to stability metrics. Forexample, if the accelerometer 227 metric is greater than the motionthreshold, the processor 215 can determine that the mobile device 120 islikely moving with respect to a nearby surface, and can proceed todynamically determine the dielectric constant of the surface, e.g.,while the mobile device is in motion. On the other hand, if theaccelerometer 227 metric is not greater than the motion threshold, theprocessor 215 can determine that the mobile device 120 is likelystationary with respect to a nearby surface, and may delay dynamicallydetermining the dielectric constant of the surface until the mobiledevice 120 is in motion. In an embodiment, the processor 215 can use thestability metric, as described above, in addition or alternative to theaccelerometer 227 metric.

As discussed above with respect to the section titled “Static DielectricDetection,” in general, the processor 215 can determine the dielectricconstant according to the parallel plate capacitor shown in Equation 1.The processor 215 can determine a conductivity classification of thesurface. When the mobile device 120 is in motion relative to a surfaceto be measured, however, the measured capacitance and the distance tothe surface will change over time. In an embodiment, the processor 215can determine the dielectric constant based on a change in measuredcapacitance over a first time period and a change in distance to thesurface over the first time period, as shown in Equation 7:∈_(r) =ΔC·Δd·k  (7)

In an embodiment, the processor 215 can determine the change in distanceto the surface using the accelerometer 227. In some embodiments, theaccelerometer 227 can include an integration function and can directlyreport distance traveled to the processor 215. In other embodiments, theprocessor 215 can determine the distance traveled over time based on themeasured acceleration. For example, the processor 215 can sum theproducts of acceleration readings times the period between accelerationreadings. In some embodiments, processor 215 can determine the change indistance to the surface using other positioning and/or ranging sensorssuch as, for example, ultrasonic, radar, and laser ranging sensors. Inan embodiment, the processor 215 can calculate change in distance to thesurface according to Equation 8, below, where a_(n) is an accelerationvector measured at a first time, a_(n-1) is an acceleration vectormeasured at a second time, and t is the time between the a_(n) anda_(n-1).

$\begin{matrix}{{\Delta\; d} = {{\frac{1}{2}\left\lbrack {\left( {a_{n} + a_{n - 1}} \right) \cdot {t^{2}/2}} \right\rbrack}t^{2}}} & (8)\end{matrix}$

While the mobile device 120 is in motion, the processor 215 candetermine the dielectric constant of the nearby surface as describedabove with respect to static dielectric detection, except that while inmotion the equation (5) employs changes in measured capacitance (inplace of measured capacitance), and changes in distance to the surface(in place of distance to the surface). For example, the processor 215can subtract the effect of the housing or protective case whendetermining the dielectric constant of the surface. The processor 215can also access a single or multi-dimensional lookup table, which can bestored in the memory 220, and determine one or more characteristics ofthe surface based on the result. The processor 215 can adaptively updatethe look-up table, and the look-up table can be replaced with one ormore alternative structures of machine learning.

As discussed herein the mobile device 120 can be configured to takecapacitive measurements, process the measurements, and correlate themeasurements to various materials, and/or correlate the materials toactions. During processing and/or correlation, the mobile device 120 candetermine one or more intermediate values such as values indicative of amaterial adjacent the mobile device 120. For example, the outputs fromany combination of the blocks 1206-1252 can be referred to herein as anintermediate value or value indicative of a material adjacent the mobiledevice 120.

FIG. 13 is a flowchart 1300 of an exemplary method of environmentdetection, according to an embodiment. The method of the flowchart 1300uses dynamic dielectric detection, as described herein. Although themethod of the flowchart 1300 is described herein with reference to themobile device 120, discussed above with respect to FIGS. 2 and 5A-6D, aperson having ordinary skill in the art will appreciate that the methodof the flowchart 1300 may be implemented by other suitable devices. Inan embodiment, the steps in the flowchart 1300 may be performed by aprocessor or controller such as, for example, the processor 215 (FIG.2), and/or the environment sense controller 250 (FIG. 2), in conjunctionwith one or more of the memory 220 (FIG. 2) and the sensors 255 (FIG.2). Although the method of the flowchart 1300 is described herein withreference to a particular order, in various embodiments, blocks hereinmay be performed in a different order, or omitted, and additional blocksmay be added.

At block 1305, the mobile device 120 takes at least two capacitivemeasurements (C₀ at block 1310, and C₁ at block 1315). For example, theprocessor 215 can retrieve two capacitive measurements from the Σ-Δ ADC360 (FIG. 7). At block 1320, the processor 215 can determine thedifference (ΔC) between C₀ and C₁.

At block 1325, mobile device 120 takes at least two accelerationmeasurements (a₀ at block 1330, and a₁ at block 1335). For example, theprocessor 215 can retrieve two measurements from the accelerometer 227.The two acceleration measurements a₀ and a₁ can be taken atsubstantially the same time and separated by substantially the same timedifferential as the two capacitive measurements C₀ and C₁. For example,a₀ and C₀ can be measured within around 0-10 ms of each other, such aswithin around 5 ms. Moreover, a₁ and C₁ can be measured within around0-10 ms of each other, such as within around 5 ms. At block 1340, theprocessor 215 can determine the distance traveled according to equation6, above.

At block 1345, the processor 215 can be configured to perform anorientation correction calculation. In some embodiments, capacitivereading errors can result from planar misalignment of an electrode witha surface. The processor 215 can be configured to adjust dynamicdielectric calculations by synthetically aligning the mobile device 120with an assumed surface orientation. In some embodiments the velocityvector of the mobile device 120 can be assumed to point directly to thecenter of a target to be sensed, and that the surface of that target isnormal to the velocity vector of the mobile device 120. In someembodiments, the orientation of the accelerometer 227 relative to thecapacitive electrode 255 is known. For example, the orientation andposition of the accelerometer 227 relative to one or more sensors 255can be stored in calibration data. In some embodiments, theaccelerometer 227 is capable of sensing acceleration in three orthogonalaxes.

Referring still to block 1345, the processor 215 can calculate thevelocity vector from the accelerometer 227 data. The processor 215 candetermine the plane that the capacitive electrode 255 lies on, forexample, based on the accelerometer 227 orientation and the relativesensor(s) 255 orientation data stored in the memory 220. The processor215 can calculate the differential between the velocity vector and thesensor normal vector, and compensate for the difference bymathematically rotating the sensor plane to be normal to the velocityvector. The processor 215 can calculate the magnitude responsedifference between a rotated sensor and a coplanar sensor, and applyreciprocal compensation to the capacitive measurement.

At block 1350, the processor 215 calculates, and corrects for,measurement error. In an embodiment, as distance between the mobiledevice 120 and an object changes, the magnitude of the capacitivemeasurement is expected to follow an inversely proportional response tothe distance change. Using this expected response, the processor 215 canestimate a measurement error. The processor 215 can compare thedifferential capacitance change to expected values, based on aderivative of the function C∝1/d, and determine an approximate scaledvalue of d. The processor 215 can successively perform this calculation,at various rates according to various embodiments. As the mobile device120 moves, the processor 215 can compare the average capacitive responseat many points along the 1/d curve, and can estimate capacitivemeasurement error. The processor 215 can use the estimated error toscale, offset, and/or dither measurements and/or intermediatecalculation results, thereby reducing error in the overall relativepermittivity calculation.

At block 1355, the processor 215 calculates the relative permittivity ordielectric constant of the nearby material. The processor 215 cancalculate the dielectric constant based on the corrected capacitivemeasurements determined at block 1350, and the distance traveleddetermined at block 1340. As discussed above, the processor 215 cancalculate the dielectric constant as described above with respect toEquations 5 and 6. In an embodiment, the processor 215 can adjust acharacteristic of the mobile device 120, based on the calculateddielectric constant. Various examples are included below, in the sectiontitled “Exemplary Applications.”

Human Detection

As discussed above with respect to FIG. 1, the mobile device 120 can beconfigured to determine whether a nearby object 160 a-160 d, 170, and180 is likely to be human. As discussed above in the sections titled“Static Dielectric Detection” and “Dynamic Dielectric Detection,” themobile device 120 can determine one or more characteristics based on thedetected dielectric. The mobile device 120 can heuristically predictwhether a nearby object 160 a-160 d, 170, or 180 is human based on thedetermined characteristics such as, for example, a degree of solidityvs. fluidity. For example, the average dielectric value of a human maybe similar to the average dielectric constant of other materialcompositions that are not human. The capacitive magnitude responsemeasured at capacitive sensor 255 (FIG. 2) can be used as a rough filterto find a set of objects which may be human. Because the set of objectsthat may be human is smaller than the set of all objects, falsepositives can be reduced. In an embodiment, the mobile device 120 canset a first-order human proximity trigger based on a lookup table oflikely values for different locations on a human body.

In general, solid dielectrics may behave differently than liquiddielectrics when an electrostatic force is applied. Liquid dielectricscan have molecules that are free to move, and are agitated by Brownianmotion and other influencing forces. The molecules that are relativelyfree to move will change their distance from a static capacitive sensor255, and thereby change the capacitance observed by the sensor 255.Solid dielectrics can have tightly bound molecules that do notappreciably vary their distance from a static sensor 255, when anelectrostatic force is applied. By observing the variability (forexample, by computing a standard deviation), of the capacitive charge,the mobile device 120 can reliably detect the difference between solidsand liquids. Humans can be modeled as a hybrid of solids and liquids andwill therefore exhibit different variability in capacitively sensedmeasurements, as compared to solid inanimate objects.

Referring back to FIG. 2, as discussed above, the processor 215 can beconfigured to calculate one or more metrics on the measurement resultsreceived from the environment sense controller 250. Particularly, theprocessor 215 can monitor the magnitude and/or variability ofmeasurement results. For example, the processor 215 can store aplurality of capacitance measurements in the memory 220. The processor215 can be configured to calculate the standard deviation across aplurality of the stored capacitance measurements. In other embodiments,the processor 215 can calculate a different indication of variability.

The processor 215 can calculate the standard deviation (or other measureof variability) multiple times, such as after each capacitancemeasurement, and can store the calculated standard deviation results inthe memory 220. The processor 215 can calculate and store a runningaverage of the standard deviation results over a time period that can bepreset, or dynamically adjusted based on an application of the mobiledevice 120. The processor 215 can determine and store the lowest averagestandard deviation value, referred to herein as the “standard deviationfloor.” When new capacitance measurements, individually or on average,increase a threshold amount beyond the standard deviation floor, theprocessor 215 can flag a first-order human detection. The threshold canbe preset, stored in calibration data, and/or dynamically determined. Invarious embodiments, the threshold can be between one and three standarddeviations above the standard deviation floor, such as two standarddeviations.

An example threshold can be determined as a user handles a device, andthe instantaneous standard deviation for a set of samples is determinedand exceeds the previously determined standard deviation floor. Theratio of the instantaneous standard deviation to the standard deviationfloor can be set as an approximate threshold.

In an embodiment, the processor 215 can index into a two dimensionallookup table, based on a combined magnitude response and a standarddeviation range. The processor 215 can match the capacitive magnitude tothe calculated instantaneous standard deviation for the current set ofmeasurements. The processor can scale the standard deviations in thelookup table by the standard deviation floor observed in the operatingenvironment. If a match is discovered in the lookup table, then theprocessor 215 can determine a second-order human detection. Thesecond-order human detection can imply a higher confidence that thenearby object is human.

In another embodiment, as discussed above, processor 215 can beconfigured to perform one or both of static and dielectric detection.The processor 215 can look up the detected dielectric constant in alookup table. In an embodiment, the lookup table can be pre-populatedwith expected dielectric constants for external human features adetermination of human versus solid object can be made. In anotherembodiment, the lookup table can be trained, or other machine learningtechniques applied, as discussed above.

In various other embodiments, based on the results of the lookup table,the processor 215 can determine a confidence level that that themeasured object is human. In an embodiment, the lookup table may containprobability values. In another embodiment, the lookup table can containvalues indicating relative likelihood that a given reading and/or metricis derived from a human feature. In another embodiment, the processor215 can determine that the measured object is human when the determinedmetric is within a threshold of any index value in the lookup table, andthat the measured object is not human when the determined metric is notwithin the threshold.

Although human detection is described above with respect to magnitudeand variability metrics, and the solidity characteristic, a personhaving ordinary skill in the art will appreciate that any metric and/ordetermined characteristic can be used in combination to determinewhether a measured object is likely to be human. In an embodiment, theprocessor 215 can apply weights to a plurality of metrics. For example,the processor 215 can heavily weight the solidity characteristic andlightly weight the mobile device's orientation with respect to themeasured object.

FIG. 14 is a flowchart 1400 of an exemplary method of environmentdetection, according to an embodiment. The method of the flowchart 1400uses static dielectric detection, as described herein. Although themethod of the flowchart 1400 is described herein with reference to themobile device 120, discussed above with respect to FIGS. 2 and 5A-6D, aperson having ordinary skill in the art will appreciate that the methodof the flowchart 1400 may be implemented by other suitable devices. Inan embodiment, the steps in the flowchart 1400 may be performed by aprocessor or controller such as, for example, the processor 215 (FIG.2), and/or the environment sense controller 250 (FIG. 2), in conjunctionwith one or more of the memory 220 (FIG. 2) and the sensors 255 (FIG.2). Although the method of the flowchart 1400 is described herein withreference to a particular order, in various embodiments, blocks hereinmay be performed in a different order, or omitted, and additional blocksmay be added.

First, at block 1405, the mobile device 120 takes a plurality ofcapacitive measurements. For example, the processor 215 can retrievecapacitive measurements from the Σ-Δ ADC 360 (FIG. 7). The processor 215can store the capacitive measurements, for example in the memory 220, asan array.

At block 1410, the processor 215 calculates the standard deviation ofthe capacitive measurements. In an embodiment, the processor 215 canstore the calculated standard deviations, for example in the memory 220,as an array. In other embodiments, the processor 215 can use anothermeasure of variability.

At block 1415, the processor 215 filters the capacitive measurements viaminima tracking. In an embodiment, the processor 215 can calculate andstore a running average of the standard deviation results. The processor215 can continually, periodically, or intermittently determine and storethe standard deviation floor.

At block 1425, the processor 215 retrieves data from a lookup table, forexample, from the memory 220. The lookup table can include twodimensions. The first dimension can include combined magnituderesponses. The second dimension can include standard deviation ranges.

At block 1430, the processor 215 scales the standard deviations in thelookup table by the standard deviation floor observed in the operatingenvironment. The processor 215 can store the scaled lookup table in thememory 220. The processor 215 can use the scaled lookup table duringcomparison search at block 1440.

At block 1435, the processor 1435 can run the capacitive measurementsobtained in block 1405 through a low-pass filter. For example, theprocessor 215 can maintain a running average of recent capacitivemeasurements. As another example, the processor 215 can calculate aweighted average, giving higher weight to the most recent measurements.In an embodiment, the mobile device 120 can include a digital signalprocessor (DSP) configured to implement a low-pass filter.

At block 1440, the processor 215 indexes into the scaled lookup tableobtained in block 1425. The processor 215 can index into the firstdimension using the low-pass filtered magnitude capacitance measurementsobtained in block 1435. The processor 215 can index into the seconddimension using the standard deviation of capacitance measurementsobtained in block 1410. The processor 215 can determine a possible humanmatch indication based on the result of the lookup.

At block 1445, the processor 215 can signal the human match indicationto a host application, the radio subsystem, or another component of themobile device 120. The processor 215 can modify a characteristic of themobile device based on the possible human match indication. For example,the processor 215 can reduce a transmit power at the antenna 245. Asanother example, the processor 215 can implement a program, application,or subroutine configured for human interaction via the user interface225.

Lookup Tables

As discussed above with respect to the sections titled “StaticDielectric Detection,” “Dynamic Dielectric Detection,” “HumanDetection,” and “Grip Detection,” the mobile device 120 can beconfigured to compare one or more sensor readings, or metrics basedthereon, to one or more lookup tables (or other data structures) inorder to determine one or more environmental characteristics. In someembodiments, the mobile device 120 can include one or more of thefollowing lookup tables, or “libraries”: a baseline library, a measuredmaterial constant library, and a metadata library. Each library can bestored in the memory 220.

The baseline library can be a pre-populated library of common dielectricconstant measurements. The processor 215 can refer to the baselinelibrary for a first-order material prediction when a mobile device 120performs environmental measurements in a new geographic location. Thebaseline library can include the dielectric constants of commonmaterials such as woods, water, plastics, and glass. The baselinelibrary can also include one or more estimated human constantsaccounting for muscle, blood, and fat.

The measured material constant library can be a mobile device 120populated library including measurements and calculated metrics forencountered materials. In an embodiment, the measured material constantlibrary is user-populated and/or updated. In some embodiments, themeasured material constant library can be populated by a manufacturer,either at manufacture or via an update. As discussed above, when themobile device 120 encounters surfaces, the processor 215 can compare atime-averaged dielectric constant calculation to a listing of knowndielectric constants. In some embodiments, the processor 215 can useadditional characteristics, such whether a nearby object is conductive,for comparison. The processor 215 can concurrently record additionaldata regarding the measurements in the measured material constantlibrary. For example, the processor 215 can record average minimum,average maximum, and mode values for each material measured. Theprocessor 215 can store the predicted material type, derived from thebaseline library, with the recorded measurements and/or metrics.Accordingly, over time, the measured material constant library canaccumulate more accurate observed constants. For example, a givenmeasurement may correspond to “wood” in the baseline library, and to“oak” in the measured material constant library.

In an embodiment, the mobile device 120 can be configured to prefer themeasured material constant library to the baseline library. For example,the processor 215 can be initially configured to use the baselinelibrary as a first-pass filter to determine whether to look up ameasurement in the measured material constant library (or vice versa).In an embodiment, the processor 215 can be configured to prefer themeasured material constant library after a threshold number of updates.Over time, the measured material constant library can refer first to themeasured material constant library.

The metadata library can include additional data that can correspond tomeasurements, computed metrics, and/or the corresponding measurementand/or metric values stored in the baseline library and/or the measuredmaterial constant library. For example, the metadata library can includestatus entries such as, for example, indicating whether the mobiledevice 120 has been charged. The metadata library can include listentries such as, for example, lists of wireless networks in range of themobile device 120. The metadata library can include statistical entriessuch as, for example, an amount of time the mobile device 120 has beenon a particular surface. The metadata library can include averagedfunction entries such as, for example, a relationship between adielectric constant and a temperature or time of day. The metadatalibrary can include other data that can correspond to one or moremeasurements and/or metrics such as, for example, a time of day, atemperature, a location (e.g., user-indicated or derived fromlocation-awareness functions), a light sensor reading, a list ofavailable WI-FI™ service set identifiers (SSIDs), an amount of time themobile device 120 has spent on a particular surface, whether charginghas occurred and/or the time since the last charge, a user-indicatedlocation description (e.g., “living room table”), etc. The processor 215can use the metadata library to assist in an initial estimation ofsurfaces that have been previously encountered, and/or to increase therobustness of detection over in changing environments.

In an embodiment, the processor 215 can cross-reference andcross-correlate entries in the baseline library, the measured materialconstant library, and/or the metadata library. In an embodiment, theprocessor 215 can determine whether two entries are similar (forexample, by comparing the entries to a threshold range). When a match isfound, the processor 215 can infer one or more characteristics about themeasured surface based on the library contents. For example, theprocessor 215 can determine that a measured surface is not human, canenter a different power mode, can trigger a software function, etc.

In various embodiments, the look-up table can be replaced orsupplemented with one or more alternative structures of machine learningincluding, but not limited to, decision tree learning, association rulelearning, artificial neural networks, genetic programming, inductivelogic programming, support vector machines, clustering, Bayesiannetworks, reinforcement learning, representation learning, and sparsedictionary learning. In some embodiments, look-up tables can beimplemented as computer code such as, for example, a set of instructionsthat relate one or more input values to one or more output values.

In various embodiments, the look-up tables or alternative structures cancorrelate values indicative of a material adjacent the mobile device 120to actions for altering states or characteristics of the mobile device120. Values indicative of the material can include raw or encodedenvironmental characteristics such as, without limitation, one or moreof an object's capacitance, dielectric constant, type of material,conductivity, conductivity classification (i.e., conductive or notconductive), solidity, aliveness, location, distance, and orientation(including, for example, whether the mobile device 120 is being held ina hand, whether the hand is a left-hand or right-hand, and/or how thehand is gripping the mobile device 120). The values can be derived fromcapacitance measurements, as described herein. Look up tables can alsoinclude actions and/or device states that can be associated with any ofthe aforementioned measurements, values, and environmentalcharacteristics.

Exemplary Applications

As discussed above with respect to the sections titled “StaticDielectric Detection,” “Dynamic Dielectric Detection,” “HumanDetection,” “Grip Detection,” and “Lookup Tables,” the mobile device 120can determine one or more characteristics of a proximate material usingone or more capacitive measurements. For example, the mobile device 120can determine a dielectric of a proximate material using staticdielectric detection and/or dynamic dielectric detection. The mobiledevice 120 can determine a solidity vs. liquidity of a nearby material,for example, based on a variability of the measurements. The mobiledevice 120 can determine a relative position and/or orientation of thenearby material based on the measurements from multiple sensors 255. Themobile device 120 can relate such measurements to one or morecharacteristics using one or more libraries.

Based on any combination of the determined characteristics describedherein, the mobile device 120 can take some action such as, for example,adjusting a characteristic of the mobile device 120. By way ofnon-limiting example, the mobile device 120 can adjust a transmit power,transition to a different new power and/or behavior mode, and learn thematerials corresponding to aspects of a user's common environment.

As discussed above with respect to FIG. 1, the mobile device 120 can besubject to one or more mandatory or voluntary rules, regulations, orstandards, such as those regarding specific absorption rate of radiofrequency energy (SAR), that can limit the amount of power that themobile device 120 can radiate into nearby humans. When no human iswithin a critical proximity, the mobile device 120 can increase transmitpower levels, potentially increasing communication performance. On theother hand, when a human is detected within a critical proximity, themobile device can decrease the transmit power to a regulated maximumlevel. In various embodiments, the mobile device 120 can be capable ofhigher output than the regulated maximum level.

In some configurations, mobile devices may not determine human vs.non-human proximity. In other words, some mobile devices may onlydetermine proximity to any object that can be registered, such as atable. In some configurations, mobile devices may attempt to determinewhether a proximate object is human, but may do so poorly. For example,a mobile device may not have sufficient information to determine whetherthe proximate object is human.

In various embodiments, the mobile device 120 can be configured to moreaccurately detect whether a proximate object is human, for example, asdiscussed above. Accordingly, the mobile device 120 may experience areduced number of false-positive proximity detections, thereby allowingincreased transmission power when a human is not detected. Increasedtransmission power can increase communication performance.

In an embodiment, the mobile device 120 can be configured to perform oneor more actions based on the detected material characteristics describedabove. For example, the mobile device 120 may be able to distinguish aparticular material based on an adaptive library entry. The mobiledevice 120 can be configured to perform an action whenever it detectsthat particular material (or equivalent capacitive measurement), whichmay represent a user's kitchen counter, for example. For example, themobile device 120 can be configured to set a profile that disables aBLUETOOTH™ radio and maximizes a ring tone volume. The foregoing statecan be referred to as an “on counter” state, and can correspond to ascenario where the user does not expect to use BLUETOOTH™, and may befar from the mobile device 120.

In an embodiment, the mobile device 120 can adapt to changes in learnedobjects over time. For example, the mobile device 120 can be left a on aparticular table routinely. Accordingly, the mobile device 120 cancorrelate the measurements obtained when on the table with, for example,an “on table” state, similar to the “on counter” state described above.The mobile device 120 can correlate the measurements using, for example,the material libraries. Over time, however, the table surface may becomeworn, changing the measurements obtained when the mobile device 12 is onthe table. The mobile device 120 can be configured to account for smallchanges (e.g., below a threshold) in learned materials. For example, themobile device 120 can update the learned material library with newmeasurement results every time it is placed on the table.

The mobile device 120 can further correlate additional environmentalmeasurements with the table. For example, the dielectric constant of thetable may change subject to a temperature coefficient, and roomtemperature can be correlated with the time of day. Accordingly, themobile device 120 can determine expected measurement values based on thecombination of time of day, temperature, and/or any other metadata. Theability to add environmental scenario data gathered over time can allowthe mobile device 120 to perform environment recognition faster and/ormore accurately.

In an embodiment, the mobile device 120 can adjust an output of the userinterface 225 (FIG. 2) based on one or more detected environmentcharacteristics. In some embodiments, the mobile device 120 can outputan alert (e.g., audio or visual) and/or change a display (e.g., text,image, etc.). As an example, a camouflage application could associatecertain material determinations with images of that material, and whenplaced on wood the screen can show an image of wood.

In an embodiment, the mobile device 120 can adjust a power state basedon one or more detected environment characteristics. For example, themobile device 120 can detect water and turn off the power to avoid shortcircuits. In an embodiment, the mobile device 120 can adjust a powerstate output of the antenna 245 based on one or more detectedenvironment characteristics. For example, the mobile device 120 cantransmit information about an encountered material to a networkeddatabase. In an embodiment, the mobile device 120 can adjust acharacteristic of the memory 220 (FIG. 2) based on one or more detectedenvironment characteristics. For example, the mobile device 120 can loginformation about an encountered material.

FIG. 15 is a flowchart 1500 of an exemplary method of sensing anenvironment of the mobile device 120 of FIG. 2. Although the method offlowchart 1500 is described herein with reference to the mobile device120 discussed above with respect to FIG. 2, a person having ordinaryskill in the art will appreciate that the method of flowchart 1500 canbe implemented by another device described herein, or any other suitabledevice. In an embodiment, the steps in flowchart 1500 can be performedat least in part by a processor or controller such as, for example, theprocessor 215 (FIG. 2) and/or the environment sense controller 250 (FIG.5). Although the method of flowchart 1500 is described herein withreference to a particular order, in various embodiments, blocks hereincan be performed in a different order, or omitted, and additional blockscan be added.

First, at block 1510, the processor 215 takes a measurement with a firstcapacitive sensor of the mobile device 120. For example, the processor215 can take a measurement with the capacitive sensor 255. Themeasurement can include a capacitance detected at one or more sensors255, a charge on one or more sensors 255, a change thereof, etc., asdiscussed herein.

Next, at block 1520, the processor 215 determines an environmentalcharacteristic based on a correspondence between the measurement and theenvironmental characteristic. In an embodiment, the determinedenvironmental characteristic can include a dielectric constant of anobject proximate to the mobile device 120. For example, the processor215 can determine a dielectric constant of a nearby surface based on thecharge on the sensors 255, as discussed above with respect to thesection titled “Static Dielectric Detection.” In various embodiments,the environmental characteristic can include a value indicative of amaterial adjacent the mobile device 120.

In an embodiment, the determined environmental characteristic at block1520 can include a material type of an object proximate to the mobiledevice 120. For example, the processor 215 can determine a material typeof a nearby material, as discussed above with respect to the sectiontitled “Lookup Tables.” In an embodiment, the determined environmentalcharacteristic at block 1520 can include a conductivity classificationof a proximate object.

In an embodiment, the mobile device 120 is in motion relative to aproximate object. The processor 215 can determine a change inmeasurement caused at least in part by the relative movement of themobile device 120. The processor 215 can determine the characteristic ofthe object based on the change in measurement at block 1520. Theprocessor 215 can measure an indicator of a change in position of themobile device 120. The processor 215 can determine the characteristic ofthe object based further on the indicator. For example, the processor215 can determine a dielectric constant of a nearby surface as discussedabove with respect to the section titled “Dynamic Dielectric Detection.”

In an embodiment, the processor 215 can determine a variability inmeasurement caused by an object in the proximity of the mobile device120. The processor 215 can determine whether the object is human basedon the variability in measurement at block 1520. For example, theprocessor 215 can determine an indication that a nearby object is aliving object, as discussed above with respect to the section titled“Human Detection.”

In an embodiment, the processor 215 can take a measurement with a secondcapacitive sensor of the mobile device 120. The processor 215 candetermine the spatial relationship based on the measurements taken fromthe first and second capacitive sensors. The determined spatialrelationship comprises a manner in which a hand grips the mobile deviceat block 1520. For example, the processor 215 can determine a grip typeas discussed above with respect to the section titled “Grip Detection.”

Then, at block 1530, the processor 215 adjusts a characteristic of themobile device 120 based on the determined environmental characteristic.In various embodiments, the processor 215 can adjust the characteristicof the mobile device 120 as described above with respect to the sectiontitled “Exemplary Applications.” For example, adjusting thecharacteristic can include adjusting a characteristic of radiotransmission and/or reception, displaying an image or text on the mobiledevice screen, transmitting data related to the detected environmentalcharacteristics, logging data, building relational databases,establishing patterns of mobility, establishing patterns of expected usecases, etc.

In an embodiment, the processor 215 can record an updated correspondencebetween the measurement and the environmental characteristic at block1530. In an embodiment, the processor 215 can adjust transmit power ofthe mobile device 120 at block 1530. In an embodiment, the processor 215can adjust a tuning of an antenna at block 1530. In an embodiment, theprocessor 215 can adjust a user interface output at block 1530. In anembodiment, the processor 215 can transmit information related to themeasurement at block 1530. In an embodiment, the processor 215 can logdata at block 1530. In an embodiment, the processor 215 can build arelational database at block 1530. In an embodiment, the processor 215can establish patterns of mobility and patterns of expected use cases atblock 1530.

FIG. 16 is a functional block diagram of an apparatus 1600 for sensingan environment of the mobile device 120 of FIG. 2, in accordance with anembodiment of the invention. Those skilled in the art will appreciatethat an apparatus for sensing an environment may have more componentsthan the simplified apparatus 1600 shown in FIG. 16. The apparatus 1600for sensing an environment shown includes only those components usefulfor describing some prominent features of implementations within thescope of the claims. The apparatus 1600 for sensing an environmentincludes means 1610 for taking a capacitive measurement, means 1620 fordetermining an environmental characteristic based on a correspondencebetween the measurement and the environmental characteristic, and means1630 for adjusting a characteristic of the mobile device based on thedetermined environmental characteristic.

In an embodiment, means 1610 for taking a capacitive measurement can beconfigured to perform one or more of the functions described above withrespect to block 1510 (FIG. 15). In various embodiments, the means 1610for taking a capacitive measurement can be implemented by one or more ofthe environment sense controller 250 (FIG. 2), the sensors 255 (FIG. 2),and the Σ-Δ ADC 360 (FIG. 7).

In an embodiment, means 1620 for determining an environmentalcharacteristic based on a correspondence between the measurement and theenvironmental characteristic can be configured to perform one or more ofthe functions described above with respect to block 1520 (FIG. 15). Invarious embodiments, the means 1620 for determining an environmentalcharacteristic based on a correspondence between the measurement and theenvironmental characteristic can be implemented by one or more of theprocessor 215 (FIG. 2), the memory 220 (FIG. 2), the accelerometer 227,and the environment sense controller 250 (FIG. 2). In variousembodiments, the environmental characteristic can include a valueindicative of a material adjacent the mobile device 120.

In an embodiment, means 1630 for adjusting a characteristic of themobile device based on the determined environmental characteristic canbe configured to perform one or more of the functions described abovewith respect to block 1530 (FIG. 15). In various embodiments, the means1630 for adjusting a characteristic of the mobile device based on thedetermined environmental characteristic can be implemented by one ormore of the processor 215 (FIG. 2), the memory 220 (FIG. 2), the userinterface 225, the antenna controller 240, the transmitter 235, and theradio subsystem 230.

Naïve Bayesian Classifier for Grip Detection

As discussed extensively above, the environment sense controller maytake one or more capacitive measurements using one or more sensors todetect a grip on the mobile device. One way of determine the (kind of)grip based on the observed capacitive measurements is to use a look uptable which associates grips with corresponding reference capacitivemeasurements. While a look up table is an efficient way to implement agrip detector, its accuracy may not be sufficient in properly detectinga grip. Furthermore, a look up table may lack flexibility in itsimplementation. Another way to determine the grip is to use astatistical method, for instance, a Naïve Bayesian Classifier.

A Naïve Bayesian Classifier is a statistical approach which calculatesthe posteriori probability for a plurality of classes, i.e., differentkinds of grips C_(i) for 1<i<Y, where Y is the number of different typesof grips, given one or more capacitive measurements X are observed (Xmay be a Z-dimensional vector having Z samples, x₁, . . . x_(Z), e.g., Zcapacitive measurements from one or more sensors, S₁, . . . S_(Z)). Suchprobability can be expressed as P(C_(i)|X). The posteriori probabilitiescan be evaluated for different types of grips and the maximum posterioriprobability would indicate which type of grip is most likely given theobserved capacitive measurements. Using the Naïve Bayes theorem, theprobability P(C_(i)|X) can be evaluated as follows:

$\begin{matrix}{{P\left( C_{t} \middle| X \right)} = \frac{{P\left( X \middle| C_{t} \right)}{P\left( C_{t} \right)}}{P(X)}} & (9)\end{matrix}$

P(X) is the a priori probability of the observed capacitivemeasurements. Because the classifier is comparing the posterioriprobabilities for different kinds of grips and the P(X) terms is thesame for all the posteriori probabilities, the term may be ignored ordisregarded in the classifier.

P(C_(i)) is the a priori probability of a grip. In some embodiments, itis assumed that the probability of individual types of grips are equallylikely, P(C_(i))=P(C_(i+1))= . . . =P(C_(Y))=1/Y. In some embodiments,the a priori probabilities for the grips may be pre-determined, e.g.,using empirical data indicating the frequency of observing a particulargrip, and/or or manual input values based on prior knowledge.

P(X|C_(i)) is the probability of observing the capacitive measurements,X, given a particular grip C. In some embodiments, the probabilitydistribution of observing X given C_(i) is known, and was previouslydetermined from training data. It may be assumed in some embodimentsthat the samples in the capacitive measurements from the sensors areindependent from each other, and P(X|C_(i)) can be estimated by:P(X|C _(i))≈Π_(k=1) ^(X) P(x _(k) |C _(i))  (10)

In some embodiments, the distribution used in the classifierrepresenting the probability of observing the capacitive measurement Xgiven a particular grip C_(i), i.e., P(X|C_(i)) is modeled using anormal distribution, and thus the probability distribution can bedefined/parameterized by its mean and variance. By using a model, theclassifier may mathematically evaluate probabilities for the observedcapacitive measurements X efficiently using a well-defined function forthe distribution. It is envisioned that other suitable distributions maybe used, such as other generalized normal distributions.

The training data includes labeled data associating capacitivemeasurements with corresponding grips. In some cases, the training datamay be obtained by having a sufficiently large number of different usersto hold the mobile device. The mobile device may then take capacitivemeasurements from the sensors as the users are holding the mobile phonewith a particular grip. Then, capacitive measurements can be tagged withthe particular grip (i.e., label). By allowing many users providetraining data advantageously allow the classifier to be trained for alarge range of users. In some cases, the training data may be obtainedby prompting a user to label potential grips detected by the mobilephone. A user may also be asked to provide training data by prompting auser to provide a grip, and recording the capacitive measurements. Inother words, a user of the mobile device may train the classifier byholding the phone using different grips and providing user input tolabel the capacitive measurements of a potential grip. The labeled datamay be stored and the appropriate probability distributions may becomputed therefrom, e.g., mean and variance of the distribution for eachtype of grip may be calculated for use in the probabilistic model. Theprobability distribution may then be defined using the computed mean andvariance, and the probability P(X|C_(i)) can be easily computed byproviding the observed capacitive measurements as inputs. Exemplaryprobability distributions are shown in FIG. 17, where the variances intwo dimensions are varied, causing the distribution to have a wider ornarrower shape. The probability distributions may be two-dimensional,taking samples from two sensors as inputs to determine the probabilityof the observed capacitive measurements from the two sensors given aparticular grip. If more sensors are used, the probability distributionsmay have a higher dimensionality. The probability distributions for thedifferent grips may be composed into as a grip map, where gripprobability distributions, e.g., ones seen in FIG. 17 are distributedaccording to the mean values of the probability distributions for thedifferent grips.

In some embodiments, a scale factor may be applied to each probabilitydistribution to normalize the peak (e.g., peak of the normaldistribution) to some level, e.g., 1. In certain embodiments, the scalefactor may be used to modify the probability distribution such that theaccuracy of the classifier can be improved, especially when there aregrips which exhibits similar capacitive measurements (e.g., theprobability distributions are “nearby” in the grip map). As the varianceof a probability distribution increases, the peak value of theprobability distribution may decrease, which makes the gripcorresponding to the probability distribution less likely (i.e., havinga lower probability) than a “nearby” grip with a smaller variance.Normalizing the peaks to a particular value/constant may reduce theinfluence of low variance peaks being dominated (incorrectly) by othernearby grips. Especially rare grips may be further assisted by makingthe peak value of its probability distribution greater than the peakvalue of other distributions without unnecessarily encroaching on othergrips' space in the grip map.

It is noted that a Naïve Bayesian classifier is particularly useful indetecting grips (such as the various grips discussed in relation to FIG.10A-E) for mobile devices due to its ability to handle overlappingclasses well (when compared to Support Vector Machines). Furthermore,the probability distributions may be scaled to better handle classesthat are close to each other.

A mobile device may be equipped with two sensors, or more than twosensors (e.g., three or four sensors, or more). For grip detection, itis advantageously to have two or more sensors placed near locationswhere a user's hand(s) is likely to hold the device. For instance, thesensors may be placed on two sides of a mobile device and/or corners ofthe mobile device. Each sensor produces a capacitive measurement, and aplurality of sensors may provide a plurality of capacitive measurementsas data vector X. The observed capacitive measurements from the sensorscan be provided to the Naïve Bayesian classifier to determine the grip,i.e., a specific way the mobile device is being held.

In one embodiment, a single sample is collected from a sensor. Inanother embodiment, several samples are collected from a sensor andcombined and/or averaged to form the observation for the sensor, whichmay be less prone to noise than collecting a single sample.

During operation, observed capacitive measurements are obtained, and canbe used as inputs to the probability distributions for the various gripsto determine which the most likely/probable grip is given the observedcapacitive measurements using the Naïve Bayesian classifier frameworkdescribed above. A computational loop may be used to iterate through theprobability distributions for the various grips to compute therespective probabilities. The computational loop may select the mostprobable grip and provide an identifier for the grip as the result. Forinstance, an array may store the different grips, and the loop mayprovide the index of the most probable grip in the array as the result.

Various optimizations/simplifications may be made to the Naïve Bayesclassifier to improve its performance. In some embodiments, the peakcoordinates of the grips (e.g., mean coordinates) are stored as part ofthe data set, i.e., the mean values of the probability distributions arestored and made easily accessible (e.g., in an array). In oneembodiment, the classifier first locates the nearest K peaks to theobserved capacitive measurements (where K is less than Y), and theprobabilities are computed only from the nearest K probabilitydistributions. The maximum probability is then selected from theprobabilities computed from the nearest K probability distributions.

In certain embodiments, the classifier may be optimized to report norecognized grips or no probable grips if all peaks coordinates (i.e.,mean values of the probability distributions for the grips) fall outsideof a defined radius from the observed capacitive measurements. In oneembodiment, the classifier may be optimized to report the single gripwhich falls inside a radius as the most probable grip withoutcalculating the probability from the probability distributions.

In some embodiments, any combination of grips is indistinguishable fromeach other, only the distance of the observed capacitive measurementsfrom the peaks is calculated. In some embodiments, there is anaugmentation to the grip map (i.e., the map of probability distributionsfor various grips). If the local minima of saddles between grip peaksare found, and a spline is generated to follow the minima. The splinethat has been found in the saddles may be used to define a borderbetween different grips in the grip map—the side of the border whichexhibits the greatest sum of probable outcomes is the side that the gripresides on. A spline may easily allow the observed capacitivemeasurements to be classified as a particular type of grip simply bydetermining on which side of the border the observed capacitivemeasurements fall.

In summary, various optimizations and augmentations may be provided toreduce the computational complexity of the classifier. Calculatingprobabilities from the probability distributions usually involvesmultiple computationally expensive operations. Finding distances betweenpoints (e.g., between the observed capacitive measurement and peakcoordinate(s)) or classifying a point using bordered areas in a grip mapis less computationally complex. As computation decreases, powerconsumption of the device doing the computation decreases. By savingpower, the classifier can be “always” on (“ambient sensing”) or on forlonger periods of time, even for mobile devices where computationalresources and power are generally limited. Having a classifier that candetect grips at any time avoid the need to prompt the user forpermission to turn the classifier on or off (e.g., to avoid draining thebattery of the mobile device).

While static gestures may be detected from capacitive measurements takenat a given time using the classification methods disclosed herein,detecting a sequence of gestures using one or more finite state machines(FSMs) may allow the mobile device to detect more complex gestures. Thedetection of a complex gesture comprising a sequence of gestures maythen be used to trigger a user input event. For instance, a shorthistory of samples as data points may be kept in storage, and a point topoint series of vectors (e.g., directional line segments) can be madebetween the data points. Every sample coordinate acquired after thefirst may create a line segment. The vector information for the linesegments can be fed to a group of FSMs to detect a complex gesture thatis composed of a sequence of gestures.

FSMs may be used to detect a sequence of gestures by capturing, e.g.,the change in magnitude from the last change in magnitude and the anglefrom line segment to line segment. The group of FSMs may watch for asequence of line segment characteristics to take place (i.e., leadingthe FSM to reach to a “detection” or “end” state). Once a sequence issatisfied then the FSM is reset and a user input event will begenerated. If a sequence of gestures does not correspond to a knownsequence, the sequence would either not get past the first transition toadvance another state or would be reset with no action taking place. Insome embodiments, if a sequence is partially satisfied (e.g., forseveral times, or often), the mobile device may push the FSM to reachthe “detection” state or “end” state by prompting the user with amessage to request further user input from the user to confirm agesture, “Did you just try to tap-to-click” or any suitable prompt toverify the user is trying to trigger a sequence (but the defaultsequence expectation is not tailored well to their particular input).

In some embodiments, the FSMs may be used with a classifier whichdetects static gestures to detect complex gestures. Each sample (i.e.,observed capacitive measurements for a given time or period of time) cansuccessively generate a detected grip using the classifier to composethe sequence of detected grips. Each detected grip triggers a change inthe finite state machine, e.g., to another state. A sequence of changesin the finite state machine may lead to a detection state (or “end”state) where a particular sequence of gestures has been detected toindicate the existence of the complex gesture.

Complex gestures having may be useful when a user wishes to provide auser input through a sequence of gestures. For instance, a user may wantto take a picture of him/herself using a mobile device, and the FSMs maybe used to detect the sequence of gestures. The user may hold the phonewith the index finger roughly in the back-center of the phone, threeother fingers on one side, and palm/thumb on the other side. Interactingwith the screen can be cumbersome with larger phones in one handedoperation, and also could partially obscure the image being observedwhile the picture is being taken. In such instance, a sequence ofgestures may be used to allow the user to take a picture withoutinteracting with the screen. The index finger starts at rest on the backof the phone, then is lifted, and then is placed back down upon thephone. To the mobile device, the sequence may include three detectedgestures (1) the index finger at rest, (2) the index finger is lifted,and (3) the index finger is back at rest (each corresponding to a statein an FSM). FIG. 18 illustrates a plot showing three data samples, a, b,and c corresponding to the three detected gestures. At sample fingerbeginning on the phone, then the sample values decreases since thefinger was removed from proximity, then the sample values increase to asimilar value as before (though probably not exactly the same as beforesince the index finger may not be exactly back to where it was, or thecapacitive measurements may change due to dielectric temperature change,etc.).

While the above illustration explains the Naïve Bayesian classifierbeing used to determine grip, the same technique may be applied toclassify capacitive measurements for other classes and/or environmentcharacteristics. For instance, the classifier may be used to identifyspecific environments surrounding the mobile device, including but notlimited to: resting on surface(s), residing in pockets, being holstered,being carried in purses or other luggage, any type of non-hand contact,etc. Sequence of states in environment characteristics may also bedetected using FSMs (e.g., detecting a sequence of states where the userhas made a sequence of moves to the device to put a device in a jeanpocket, or where the user has made a sequence of moves to the device toplace the device in a hands-free cradle in the car, etc.).

In some embodiments, capacitive measurements may be collected by amobile device over time, and a clustering algorithm may be used tocluster the capacitive measurements into one or more types of(potential) grips. The clustered data may then be used to generateprobability distributions for the classifier. Using the classifier, anyfurther capacitive measurements may then be classified into one of these(potential) grips. Once a potential grip is detected, a user may beprompted to provide user input to associate the potential grip as one ofthe grips that can be used to make a command and/or change acharacteristic of the mobile device. The clustering technique to learnthe different potential grips may also be applied to training datacollected from many different users overtime.

Besides learning new clusters and classes, some embodiments can improvethe classifier by improving known clusters and classes. A mobile devicemay be initiated with a generic grip map and/or grip probabilitydistributions. A mechanism may be used to add new classes, and/or modifythe probability distributions of existing clusters to tailor genericgrip maps to a user's specific grip map over time. This is particularadvantageous because different capacitive measures may be observed fordifferent users (e.g., different size of hands, some people have moreclammy hands, etc.). In short, it may be difficult to provideprobability distributions that fits all.

In one instance, the mobile device may store a set of vectors joining asequence of samples (i.e., capacitive measurements). If the vectorssubstantially sum to zero, the samples would indicate that a user isusing a particular static grip in holding the phone. Such data samplesbeing similar to each other may be collected over time to form anadditional class. Means and variances may be computed accordingly forthe additional class. If an additional class is added, the device mayprompt the user to label the grip such that the grip can be associatedwith a particular command to the device, or state of the device. In somecases, a state or a grip identifier may be assigned to this additionalclass by the mobile device. If the vectors do not sum to zero, it islikely that the samples do not represent a static grip. One or more ofsamples may be used to improve or move the peak coordinates and/orvariances of other grips by associating a sample with a grip having peakcoordinates closest to the sample. By providing new samples to existinggrip distributions, the grip distributions can be improved over timebased on samples taken during the operation of the mobile device.Learned classes may be used in some embodiments to form a user-specificgrip map that could be used to improve classification of capacitivemeasurements

In some instances, an experimental grip map can be created from genericgrip map and a shadow (user-specific, learned) version of the grip map.A shadow version of the nearest peak grip may be added to the genericmap. The new mean position may lie half way along the line segmentformed by the average position of the currently observed grip and thepeak of the originally identified nearby grip. Advantageously, thegeneric grip map may be adapted to the user (e.g., someone who may havedifferent sized hands, etc.).

In some cases, the shadow map result may be compared to the default gripmap result over time. A first order infinite impulse response (IIR)filter may be used to fill in the difference between the original mapprobability and the shadow map probability. Once the IIR accumulates toa certain level, the shadow map is copied over the original grip and isused in regular operation. Other grips in the shadow map may have theirpeak positions/centers moved by a fraction of the overall movement thathad taken place between the replaced grip and the newly instated grip.This global movement advantageously captures effects of hand size andaccelerates the tuning of grips.

In some embodiments, a user may be identified based on coincidentaccuracy of grips using a trained grip map. If a user can grip a phonewith consistently high probability grip scores, then the algorithm canidentify the user as the most common user. Overall likelihood of theuser can be identified by one or more of the following: averaging gripprobability score, dwell time in particular grips, average variancewhile in a grip, populating 2, 3, and 4 long grip change windows andcorrelating with the most common scenarios observed for each window.Window averages may be updated with every new grip transition. Lesscommon users may be prompted more often for a password, or may have someother user interface consequence. In some cases, identification of theuser may be used to select a grip map that is tailored to the particularuser based on the accuracy grip detection compared across different gripmaps.

In some embodiments, grip maps may be shifted or modified based onpackaging drift effects. As temperature and humidity of the casing of amobile device changes, the dielectric constant will change. Sometimes,the dielectric constant also changes because the user changes casing ofa mobile device. Dielectric constant changes appear as a constant shiftin the measurement being taken, and effectively shift the grip map by aparticular constant. By adding a sensor that is not influenced by thepresence of a hand, the temperature and humidity variables can beobserved. A linear or piecewise linear correction can be applied to themeasured values read from the grip sensors, where a calculation can bemade for shifting every sample of sensor data. Alternatively, the peaksof the grip map could be altered so that the skewed data could fall on askewed map, which ultimately corrects for the effect of the offsets. Forinstance, the mobile device may observe using an environmental sensor todetermine the particular constant (i.e., corresponding to the constantshift caused by the change in the dielectric constant), and update themean values in the grip map. This operation may happen much lessfrequently due to the thermal inertia of the device.

In some embodiments, movement may be identified based on transientanalysis of inter-grip data. As a grip is changing, or as any movementhappens, the skin on the hand deflects due to the inertia of the phoneresisting the hand pushing it in some other direction. The deflection ofthe skin may result in a higher or lower capacitive reading. As sensorcount increases, and as sample rate increases, the elasticity of thehand becomes apparent. The differential combination of hand movingtowards and hand moving away from sensors as the hand accelerates thephone in a particular path creates a capacitive stimulus. Direction canbe estimated by observing the event described above and applying acomparison between all of the sensors and all of the sensors. The netdirection can be determined by finding the lowest valued weighting ofsensors and the highest value weighting; the hand is moving to thelowest direction from the highest weighted direction. For instance,shake type gestures can be determined, as well as swing gestures(picking up a phone) or press type events (pushing a phone into apocket). In some embodiments, the movement detection synchronize orcorrelate data from an accelerometer with the capacitive measurements tobetter detect movement.

One illustrative application programming interface (API) for gripdetection is illustrated in FIG. 19. The Grip Detection API is organizedsuch that information to describe all grips is separated from theprocessing required to identify grips. No data about the physical gripsto be identified stays resident in any of the functions doing theprocessing; this means that two completely individual physical devicescould use the same algorithm by simply reconfiguring the data structurethe grip algorithm operates on. In some embodiments, the data that thegrip algorithm uses may be is organized in a hierarchy such that any ifany particular aspect a physical sensor were to change, only a simple,isolated change to the configuration of the data in the member arrays.In some cases, additional physical grips to be identified can be addedto an existing configuration by extending the length of each of theallocated arrays and populating the new elements with the new gripdescription data.

The class_t structure, as seen in the “Application Allocated Arrays” isused to include data required to describe a grip from the perspective ofa single sensor. If multiple sensors are used, the same number ofinstances of class_t may be used to completely describe the grip. Forexample, if two sensors are used, then two class_t instances may beallocated, one to describe each sensor. Exemplary members in class_t mayinclude:

Name Mean Type Double Description the mean value used to describe aprobability distribution of a single sensor perspective of a single grip

Name Variance Type Double Description the variance value used todescribe a probability distribution of a single sensor perspective of asingle grip

Name Scale Type Double Description the value used to scale the peakvalue of a probability distribution to a desired value; (optional)useful for normalizing probability distributions for a grip to a peakvalue

The results of the most likely grip may be stored a Gripinfo_t structureby FindClass( ). The structure may include the value of the index of theClassVector array used to find the greatest probability and (optionally)the value of the greatest probability. Gripinfo_t data may allow rawgrip information to be made available to higher level software.Exemplary members of the Gripinfo_t structure includes:

Name P Type float Description Largest magnitude probability for thegiven sample data of all of the grips specified in an array or arrays ofclass_t (ClassVector)

Name index Type Unsigned int Description Index of an array or arrays ofclass_t (ClassVector) which resulted in the highest probability grip forthe given sample data

The collection of data to describe grips for a device, and metadataabout the described grips, is organized in a context_t type. An instanceof context_t may not include any storage for grip information, but mayinclude pointers to where the grip description information is stored.For a single index, arrays in the context_t are considered to representsome aspect of a single grip. For example, ClassVector1[0],ClassVector2[0], and Pmin[0] each describe an aspect of a singlephysical grip. Exemplary members of context_t includes:

Name ClassVector2 Type class_t* Description ClassVector1 is a pointerused to store the location of an array of class_t. Each element of thearray being pointed to describes a single grip from the point of view ofa single sensor.

Name ClassVector2 Type class_t* Description ClassVector2 is a pointerused to store the location of an array of class_t. Each element of thearray being pointed to describes a single grip from the point of view ofa single sensor.

Name Pmin Type double* Description Pmin is a pointer to an array ofdouble. Each element of the array holds the minimum probability of aspecific grip to be considered valid.

The function p( ) calculates the probability of a sample on aprobability distribution, using a statistical distribution defined byits mean(s), and variance(s), and an observed sample point (i.e.,observed capacitive measurements). This function may be called byFindClass( ).

Prototype double p (double variance, double mean, unsigned shortsample); Parameters 1. variance: Parametric variance value for thedistribution to be calculated 2. mean: Parametric mean value for theparameterized to be calculated 3. sample: The sample point at which theprobability should be calculated Returns The probability calculatedgiven the parametric distribution data and sample point is returned

The function FindClass( ) searches defined grips for the most probablematch when given a single sample of grip data. In one example,FindClass( ) may support up to 256 grips. It is envisioned that anynumber of grips may be supported. FindClass( ) may cycle through all (orat least a subset of) grips represented in the ClassVector arrays andreturn the index of the most likely grip.

Prototype int FindClass(void *context, unsigned short *sample, void*status, double thold); Parameters 1. *context: pointer to a context_tstructure holding the grip descriptions 2. mean: Parametric mean valuefor the parameterized to be calculated 2. *sample: pointer to anunsigned short array holding the grip data. The ordering of the gripdata in the array should match the ordering of data in the ClassVector1and ClassVector2 member variables. For example, if ClassVector1represents the statistical model of sensor A, status[0] should containdata from sensor A, ClassVector2 should represent the model of sensor B,status[1] should contain data from sensor B, and so on. 3. *status:pointer to a GripInfo_t structure populated by FindClass( ) to store theraw probability and grip index detected. 4. thold: Threshold value tocompare the largest detected grip probability to. This level specifiesthe minimum probability required for reporting a valid grip. This valuedoes not supersede the minimum probability values defined per grip inthe Pmin array pointed to in the first parameter, context. Returns If agrip is detected which has a probability equal to or greater than thevalue of thold, the index of the most probable grip in the context →ClassVector arrays will be returned. If no grip is found to have aprobability equal to or greater than the value of thold, then −1 isreturned.

In the embodiments described above, systems with capacitive sensing weredescribed in conjunction with particular embodiments. It will beunderstood, however, that the principles and advantages of theembodiments can be used for any other systems, apparatus, or methodswith a need for capacitive environment detection. For example, anysystems, apparatus, or methods with a need for adjusting one or moredevice characteristics based on environmental factors.

Such methods, systems, and/or apparatus can be implemented into variouselectronic devices. Examples of the electronic devices can include, butare not limited to, consumer electronic products, parts of the consumerelectronic products, electronic test equipment, etc. Examples of partsof consumer electronic products can include rectifiers, programmablefilters, attenuators, variable frequency circuits, circuit having anoutput coupled to an input of an analog-to-digital converter, etc.Examples of the electronic devices can also include memory chips, memorymodules, circuits of optical networks or other communication networks,and disk driver circuits. The consumer electronic products can include,but are not limited to, wireless devices, a mobile phone (for example, asmart phone), cellular base stations, a telephone, a television, acomputer monitor, a computer, a hand-held computer, a tablet computer, apersonal digital assistant (PDA), a microwave, a refrigerator, a stereosystem, a cassette recorder or player, a DVD player, a CD player, adigital video recorder (DVR), a VCR, an MP3 player, a radio, acamcorder, a camera, a digital camera, a portable memory chip, a washer,a dryer, a washer/dryer, a copier, a facsimile machine, a scanner, amulti functional peripheral device, a wrist watch, a clock, etc.Further, the electronic device can include unfinished products.

Unless the context clearly requires otherwise, throughout thedescription and the claims, the words “comprise,” “comprising,”“include,” “including,” and the like are to be construed in an inclusivesense, as opposed to an exclusive or exhaustive sense; that is to say,in the sense of “including, but not limited to.” The words “coupled” or“connected”, as generally used herein, refer to two or more elementsthat may be either directly connected, or connected by way of one ormore intermediate elements. Additionally, the words “herein,” “above,”“below,” and words of similar import, when used in this application,shall refer to this application as a whole and not to any particularportions of this application. Where the context permits, words in theDetailed Description using the singular or plural number may alsoinclude the plural or singular number, respectively. The words “or” inreference to a list of two or more items, is intended to cover all ofthe following interpretations of the word: any of the items in the list,all of the items in the list, and any combination of the items in thelist.

Moreover, conditional language used herein, such as, among others,“can,” “could,” “might,” “may,” “e.g.,” “for example,” “such as” and thelike, unless specifically stated otherwise, or otherwise understoodwithin the context as used, is generally intended to convey that certainembodiments include, while other embodiments do not include, certainfeatures, elements and/or states. Thus, such conditional language is notgenerally intended to imply that features, elements and/or states are inany way required for one or more embodiments or that one or moreembodiments necessarily include logic for deciding, with or withoutauthor input or prompting, whether these features, elements and/orstates are included or are to be performed in any particular embodiment.

The teachings of the inventions provided herein can be applied to othersystems, not necessarily the systems described above. The elements andacts of the various embodiments described above can be combined toprovide further embodiments.

In the discussions of the embodiments above, the capacitors, clocks,DFFs, dividers, inductors, resistors, amplifiers, switches, digitalcore, transistors, and/or other components can readily be replaced,substituted, or otherwise modified in order to accommodate particularcircuitry needs. Moreover, it should be noted that the use ofcomplementary electronic devices, hardware, software, etc. offer anequally viable option for implementing the teachings of the presentdisclosure.

In one example embodiment, any number of electrical circuits of theFIGURES may be implemented on a board of an associated electronicdevice. The board can be a general circuit board that can hold variouscomponents of the internal electronic system of the electronic deviceand, further, provide connectors for other peripherals. Morespecifically, the board can provide the electrical connections by whichthe other components of the system can communicate electrically. Anysuitable processors (inclusive of digital signal processors,microprocessors, supporting chipsets, etc.), memory elements, etc. canbe suitably coupled to the board based on particular configurationneeds, processing demands, computer designs, etc. Other components suchas external storage, additional sensors, controllers for audio/videodisplay, and peripheral devices may be attached to the board as plug-incards, via cables, or integrated into the board itself.

In another example embodiment, the electrical circuits of the FIGURESmay be implemented as stand-alone modules (e.g., a device withassociated components and circuitry configured to perform a specificapplication or function) or implemented as plug-in modules intoapplication specific hardware of electronic devices. Note thatparticular embodiments of the present disclosure may be readily includedin a system on chip (SOC) package, either in part, or in whole. An SOCrepresents an IC that integrates components of a computer or otherelectronic system into a single chip. It may contain digital, analog,mixed-signal, and often radio frequency functions: all of which may beprovided on a single chip substrate. Other embodiments may include amulti-chip-module (MCM), with a plurality of separate ICs located withina single electronic package and configured to interact closely with eachother through the electronic package. In various other embodiments, theamplification functionalities may be implemented in one or more siliconcores in Application Specific Integrated Circuits (ASICs), FieldProgrammable Gate Arrays (FPGAs), and other semiconductor chips.

It is also imperative to note that all of the specifications,dimensions, and relationships outlined herein (e.g., the number ofprocessors, logic operations, etc.) have only been offered for purposesof example and teaching only. Such information may be variedconsiderably without departing from the spirit of the presentdisclosure, or the scope of the appended claims. The specificationsapply only to one non-limiting example and, accordingly, they should beconstrued as such. In the foregoing description, example embodimentshave been described with reference to particular processor and/orcomponent arrangements. Various modifications and changes may be made tosuch embodiments without departing from the scope of the appendedclaims. The description and drawings are, accordingly, to be regarded inan illustrative rather than in a restrictive sense.

Note that the activities discussed above with reference to the FIGURESare applicable to any integrated circuits that involve signalprocessing, particularly those that can execute specialized softwareprograms, or algorithms, some of which may be associated with processingdigitized real-time data. Certain embodiments can relate to multi-DSPsignal processing, floating point processing, signal/control processing,fixed-function processing, microcontroller applications, etc.

In certain contexts, the features discussed herein can be applicable tomedical systems, scientific instrumentation, wireless and wiredcommunications, radar, industrial process control, audio and videoequipment, current sensing, instrumentation (which can be highlyprecise), and other digital-processing-based systems.

Moreover, certain embodiments discussed above can be provisioned indigital signal processing technologies for medical imaging, patientmonitoring, medical instrumentation, and home healthcare. This couldinclude pulmonary monitors, accelerometers, heart rate monitors,pacemakers, etc. Other applications can involve automotive technologiesfor safety systems (e.g., stability control systems, driver assistancesystems, braking systems, infotainment and interior applications of anykind). Furthermore, powertrain systems (for example, in hybrid andelectric vehicles) can use high-precision data conversion products inbattery monitoring, control systems, reporting controls, maintenanceactivities, etc.

In yet other example scenarios, the teachings of the present disclosurecan be applicable in the industrial markets that include process controlsystems that help drive productivity, energy efficiency, andreliability. In consumer applications, the teachings of the signalprocessing circuits discussed above can be used for image processing,auto focus, and image stabilization (e.g., for digital still cameras,camcorders, etc.). Other consumer applications can include audio andvideo processors for home theater systems, DVD recorders, andhigh-definition televisions. Yet other consumer applications can involveadvanced touch screen controllers (e.g., for any type of portable mediadevice). Hence, such technologies could readily part of smartphones,tablets, security systems, PCs, gaming technologies, virtual reality,simulation training, etc.

Note that with the numerous examples provided herein, interaction may bedescribed in terms of two, three, four, or more electrical components.However, this has been done for purposes of clarity and example only. Itshould be appreciated that the system can be consolidated in anysuitable manner. Along similar design alternatives, any of theillustrated components, modules, and elements of the FIGURES may becombined in various possible configurations, all of which are clearlywithin the broad scope of this Specification. In certain cases, it maybe easier to describe one or more of the functionalities of a given setof flows by only referencing a limited number of electrical elements. Itshould be appreciated that the electrical circuits of the FIGURES andits teachings are readily scalable and can accommodate a large number ofcomponents, as well as more complicated/sophisticated arrangements andconfigurations. Accordingly, the examples provided should not limit thescope or inhibit the broad teachings of the electrical circuits aspotentially applied to a myriad of other architectures.

Note that in this Specification, references to various features (e.g.,elements, structures, modules, components, steps, operations,characteristics, etc.) included in “one embodiment”, “exampleembodiment”, “an embodiment”, “another embodiment”, “some embodiments”,“various embodiments”, “other embodiments”, “alternative embodiment”,and the like are intended to mean that any such features are included inone or more embodiments of the present disclosure, but may or may notnecessarily be combined in the same embodiments.

Numerous other changes, substitutions, variations, alterations, andmodifications may be ascertained to one skilled in the art and it isintended that the present disclosure encompass all such changes,substitutions, variations, alterations, and modifications as fallingwithin the scope of the appended claims. In order to assist the UnitedStates Patent and Trademark Office (USPTO) and, additionally, anyreaders of any patent issued on this application in interpreting theclaims appended hereto, Applicant wishes to note that the Applicant: (a)does not intend any of the appended claims to invoke paragraph six (6)of 35 U.S.C. section 112 as it exists on the date of the filing hereofunless the words “means for” or “step for” are specifically used in theparticular claims; and (b) does not intend, by any statement in thespecification, to limit this disclosure in any way that is not otherwisereflected in the appended claims.

Other Notes, Examples, and Implementations

Note that all optional features of the apparatus described above mayalso be implemented with respect to the method or process describedherein and specifics in the examples may be used anywhere in one or moreembodiments.

In a first example, a system is provided (that can include any suitablecircuitry, dividers, capacitors, resistors, inductors, ADCs, DFFs, logicgates, software, hardware, links, etc.) that can be part of any type ofcomputer, which can further include a circuit board coupled to aplurality of electronic components. The system can include means forclocking data from the digital core onto a first data output of a macrousing a first clock, the first clock being a macro clock; means forclocking the data from the first data output of the macro into thephysical interface using a second clock, the second clock being aphysical interface clock; means for clocking a first reset signal fromthe digital core onto a reset output of the macro using the macro clock,the first reset signal output used as a second reset signal; means forsampling the second reset signal using a third clock, which provides aclock rate greater than the rate of the second clock, to generate asampled reset signal; and means for resetting the second clock to apredetermined state in the physical interface in response to atransition of the sampled reset signal.

The ‘means for’ in these instances (above) can include (but is notlimited to) using any suitable component discussed herein, along withany suitable software, circuitry, hub, computer code, logic, algorithms,hardware, controller, interface, link, bus, communication pathway, etc.In a second example, the system includes memory that further comprisesmachine-readable instructions that when executed cause the system toperform any of the activities discussed above.

While certain embodiments of the inventions have been described, theseembodiments have been presented by way of example only, and are notintended to limit the scope of the disclosure. Indeed, the novel methodsand systems described herein may be embodied in a variety of otherforms. Furthermore, various omissions, substitutions and changes in theform of the methods and systems described herein may be made withoutdeparting from the spirit of the disclosure. The accompanying claims andtheir equivalents are intended to cover such forms or modifications aswould fall within the scope and spirit of the disclosure. Accordingly,the scope of the present inventions is defined only by reference to theappended claims.

What is claimed is:
 1. A non-transitory computer-readable mediumcomprising code that, when executed by a processor, causes an apparatusto: receive capacitance measurements measured by at least two capacitivesensors of a handheld device, including: (1) left capacitive sensorconfigured to provide capacitance measurements related to a firstportion of a hand adjacent to the left side of the handheld device and(2) right capacitive sensor configured to provide capacitancemeasurements related to a second portion of the hand adjacent to theright side of the handheld device; and determine a type of grip of thehand on the handheld device based on the capacitance measurements,wherein the capacitance measurements include a differential capacitancemeasurement between the left capacitive sensor and the right capacitivesensor, a single-ended capacitance measurement of the left capacitivesensor, and a single-ended capacitance measurement of the rightcapacitive sensor; and apply a predetermined algorithm, wherein applyingthe predetermined algorithm comprises: calculating a magnitude of thedifferential capacitance measurement between the left capacitive sensorand the right capacitive sensor; and calculating a sum of (1) thesingle-ended capacitance measurement of the left capacitive sensor, and(2) the single-ended capacitance measurement of the right capacitivesensor, wherein the magnitude of the differential capacitancemeasurement and the sum are used by the algorithm to determine the typeof grip, and wherein the type of grip specifies placements of the palm,digits, and thumb on the handheld device in a particular configuration.2. The medium of claim 1, wherein: determining the type of grip of thehand comprises accessing a multi-dimensional algorithm stored on amemory using the capacitance measurements.
 3. A method for gripdetection on a handheld device using environmental capacitive sensing,the steps comprising: receiving capacitance measurements measured by atleast two capacitive sensors, including: (1) a first capacitive sensorconfigured to provide capacitance measurements related to a firstportion of a hand and (2) a second capacitive sensor configured toprovide capacitance measurements related to a second portion of thehand; calculating a differential capacitance measurement between thefirst capacitive sensor and the second capacitive sensor; calculating asum capacitance measurement from the first capacitive sensor and thesecond capacitive sensor; applying an algorithm to one or more of thecapacitance measurements, wherein the capacitance measurements comprise:single-ended capacitance measurement of the first capacitive sensor;single-ended capacitance measurement of the second capacitive sensor;differential capacitance measurement; and, sum capacitance measurement;and determining a type of grip of the hand based on the application ofalgorithm to capacitance measurements, wherein, the type of gripspecifies placements of the palm, digits, and thumb on the handhelddevice in a particular configuration.
 4. The method of claim 3 furthercomprising the step of connecting the first capacitive sensor to apositive input of a differential amplifier front-end to ananalog-to-digital converter and the second capacitive sensor to anegative input of the differential amplifier front-end, or vice versa toobtain the differential capacitance measurement between the firstcapacitive sensor and the second capacitive sensor.
 5. The method ofclaim 3 wherein, the at least two capacitive sensors includes a furthercapacitive sensor; the type of grip of the hand on the handheld deviceis determined based further on one or more of: (1) a differentialcapacitance measurement between the first capacitive sensor and thefurther capacitive sensor, (2) a differential capacitance measurementbetween the second capacitive sensor and the further capacitive sensor,and (3) a single-ended capacitance measurement for the furthercapacitive sensor.
 6. A system configured to provide grip detection of ahandheld device comprising: a left capacitive sensor configured toprovide capacitance measurements related to a first portion of a handadjacent to the left side of handheld device; a right capacitive sensorconfigured to provide capacitance measurements related to a secondportion of the hand adjacent to the right side of handheld device; oneor more memories for storing the capacitive sensor measurements; one ormore processors operable to execute instructions based on the capacitivesensor measurements, the instructions comprising: receiving capacitancemeasurements measured by at least two capacitive sensors of the handhelddevice, including: (1) the left capacitive sensor configured to providecapacitance measurements related to a first portion of a hand adjacentto the left side of handheld device and (2) the right capacitive sensorconfigured to provide capacitance measurements related to a secondportion of the hand adjacent to the right side of handheld device;calculating a magnitude of the differential capacitance measurementbetween the left capacitive sensor and the right capacitive sensor;calculating a sum of (1) the single-ended capacitance measurement of theleft capacitive sensor, and (2) the single-ended capacitance measurementof the right capacitive sensor; applying a predetermined algorithm toone of more of the capacitive measurements or calculated thereof;determining a type of grip of the hand on the handheld device based onthe capacitance measurements and algorithm application thereto, whereinthe capacitance measurements include a differential capacitancemeasurement between the left capacitive sensor and the right capacitivesensor, a single-ended capacitance measurement of the left capacitivesensor, and a single-ended capacitance measurement of the rightcapacitive sensor; wherein, the type of grip specifies placements of thepalm, digits, and thumb on the handheld device in a particularconfiguration.
 7. The system of claim 6, wherein: the left capacitivesensor is located on or positioned along the left side of the handhelddevice; and the right capacitive sensor is located on or positionedalong the right side of the handheld device.
 8. The system of claim 6,wherein: the left capacitive sensor faces a left face of the handhelddevice; and the right capacitive sensor faces a right face of thehandheld device.
 9. The system of claim 6, wherein: the left capacitivesensor and the right capacitive sensor are parallel to front and backfaces of the handheld device and proximate to a back face of thehandheld device.
 10. The system of claim 6, wherein the system isconfigured such that the first capacitive sensor is connected to apositive input of a differential amplifier front-end to ananalog-to-digital converter and the second capacitive sensor to anegative input of the differential amplifier front-end, or vice versa,to obtain the differential capacitance measurement between the firstcapacitive sensor and the second capacitive sensor.
 11. The system ofclaim 6 wherein, the left capacitive sensor and the right capacitivesensor each has a width between 1-4 mm.
 12. The system of claim 6,further comprising: a switch matrix for iterating through differentcapacitance readings, including connecting the left capacitive sensor toa positive input of a differential amplifier front-end to ananalog-to-digital converter and the right capacitive sensor to anegative input of the differential amplifier front-end, or vice versa toobtain the differential capacitance measurement between the leftcapacitive sensor and the right capacitive sensor.
 13. The system ofclaim 12, wherein the switch matrix is further configured to: connectthe left capacitive sensor to the analog-to-digital converter for thesingle-ended capacitance measurement of the left capacitive sensor andconnecting the right capacitive sensor to the analog-to-digitalconverter for the single-ended capacitance measurement of the rightcapacitive sensor.
 14. The system of claim 6, further comprising: a biassensor that is electrostatically shielded, includes the same materialused in a housing of the handheld device and exposed to the sameenvironment as the housing with respect to temperature and/or humidity.15. The system of claim 14 wherein, the bias sensor is connectable by aswitch matrix in a differential measurement configuration with the leftcapacitive sensor or the right capacitive sensor to detect connectionbreakage and/or manufacturing defects.
 16. The system of claim 6 furthercomprising: a further capacitive sensor; wherein, the type of grip ofthe hand on the handheld device is determined based further on one ormore of: (1) a differential capacitance measurement between the leftcapacitive sensor and the further capacitive sensor, (2) a differentialcapacitance measurement between the right capacitive sensor and thefurther capacitive sensor, (3) and a single-ended capacitancemeasurement for the further capacitive sensor.